Home / MCQ Bank / Computer
Computer Function

What will be the output of the following C code? #include <stdio.h> int main() { void foo(); printf("1 "); foo(); } void foo() { printf("2 "); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 1 2

Related Computer Questions

In the context of big data storage, what does the term "data replication" involve? In a hash table of size 10, where is element 7 placed? In C++, what is the purpose of the 'do-while' loop? What will be the output of the following C++ code? #include <iostream> using namespace std; void print(int i) { cout << i; } void print(double f) { cout << f; } int main(void) { print(5); print(500.263); return 0; } The datatype that stores the longest length of strings is ______