Vidyalelo
C++ Programming · Q478

C++ miscellaneous

Programming · C++ Programming · question 478

Q478

What will be the output of the following C++ code? #include #include #include int main () char str[] = "ffff"; long int number; if (isxdigit(str[0])) number = strtol (str, NULL, 16); printf ("%ld ", number); return 0;

A.
64345
B.
21312
C.
65535
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board