MCQOPTIONS
Saved Bookmarks
| 1. |
Assuming int size is 4 bytes, what is going to happen when we compile and run the following program? #include stdio.h int main() { printf( GeeksQuizn ); main(); return 0; } |
| A. | We can t use main() inside main() and compiler will catch it by showing compiler error. |
| B. | GeeksQuiz would be printed in 2147483647 times i.e. (2 to the power 31) - 1. |
| C. | It ll print GeeksQuiz infinite times i.e. the program will continue to run forever until it s terminated by other means such as CTRL+C or CTRL+Z etc. |
| D. | GeeksQuiz would be printed until stack overflow happens for this program. |
| Answer» E. | |