Home / Programming MCQs / C Programming MCQs / Question

G

Geetam • 5.85K Points
Tutor III

Q. What will happen if the following C code is executed?

Code:
#include <stdio.h>
    int main()
    {
        int main = 3;
        printf("%d", main);
        return 0;
    }
(A) It will cause a compile-time error
(B) It will cause a run-time error
(C) It will run without any error and prints 3
(D) It will experience infinite looping

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.