Wednesday, 10 December 2014

Programming Quiz-10

What will happen if the below program is executed?

#include <stdio.h>

int main()

{

    int main = 3;

    printf("%d", main);

    return 0;

}

 Options:

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



Answer: C

No comments:

Post a Comment