Home / MCQ Bank / Computer
Computer Standard Library Functions Difficulty: Medium

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);

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int a = 8; cout << "ANDing integer 'a' with 'true' :" << (a && true); return 0; } What is the result of the expression 10 - 5 * 2 in C? What will be the output of the following C++ code? #include <iostream> using namespace std; class A{ A(){ cout<<"A's Constructor called\n"; } friend class B; }; class B { public: A a; B(){ cout<"B's constructor called\ns"; } }; int main(int argc, char const *argv[]) { B b; return 0; } What happens if an exception is thrown inside a 'catch' block in C++? Which of these classes is used for operating on the request from the client to the server?