Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main () { char str[] = "ffff"; long int number; if (isxdigit(str[0])) { number = strtol (str, NULL, 16); printf ("%ld\n", number); } return 0; }

Select the correct option to test your answer:

More Computer Questions

Solve the following recurrence using Master's theorem. T(n) = 4T (n/2) + n 2 The value 132.54 can be represented using which data type? What is the best case time complexity for binary search? What is the result of int("5") + float("2.5") ? What is the best-case time complexity of the Rabin-Karp algorithm?