Examveda

What will be the output of the following C code?
char str[]; 
strcpy(str, "Hello"); 
res = atof(str);
printf("String value = %s, Float value = %f\n", str, res);

A. String value = Hello, Float value = 0.000000

B. String value = Hello, Float value = 0

C. String value = "Hello" , Float value = 0.000000

D. String value = "Hello" , Float value = 0

Answer: Option A


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions