Q57
What will be the output of the following C++ code? #include #include int main () char s[] = "365.24 29.53"; char* p; double d1, d2; d1 = strtod (s, &p); d2 = strtod (p, NULL); printf ("%.2f ", d1/d2); return 0;
A.
12
B.
12.37
AnswerC.
13
D.
15
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board