Home / MCQ Bank / Computer
Computer Function

What will be the output of the following C code? #include <stdio.h> int main() { register static int i = 10; i = 11; printf("%d\n", i); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Compile time error

Related Computer Questions

An account that the user need not create is What is the default file extension for Ruby files? Which of the following method scopes is/are not supported by PHP? 1. private 2. final 3. static 4 abstract Which data structure is used to efficiently implement a circular buffer? What will be the output of the following C++ code? #include <iostream> #include <map> using namespace std; int main () { multimap<char, int> mymultimap; mymultimap.insert(make_pair('x', 100)); mymultimap.insert(make_pair('y', 200)); mymultimap.insert(make_pair('y', 350)); mymultimap.insert(make_pair('z', 500)); cout << mymultimap.size() << '\n'; return 0; }