

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> int main() { short k; for (k = 1; k >= 0; k++) printf("%d n", k); } |
A. | Numbers will be displayed until the signed limit of short and throw a runtime error |
B. | This program will get into an infinite loop and keep printing numbers with no errors |
C. | The control won t fall into the for loop |
D. | Numbers will be displayed until the signed limit of short and program will successfully terminate |
E. | None of these |
Answer» E. None of these | |