i am adding two floating point numbers and i want to store in a character pointer...
float f1 ;
float f2 ;
char *c = NULL;
printf\("Enter 2 floating numbers\\n"\);
scanf\("%f %f",&f1,&f2\);
f1 = f1\+f2;
sprintf\(c, "%f", f1 \);
when i execute this, i am getting segmentation fault(core dump).
please help in this regards.