Home / MCQ Bank / Computer
Computer Function

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

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

Related Computer Questions

In a Binary Search Tree (BST), what is the time complexity of deleting a node? Which of the following statements regarding charts is incorrect? Which of the following gives the path for CGI script? Which of the following is not control character? Determine Output: #include<stdio.h> void main() { int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a); }