What will happen if the below program is executed?
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
| #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