

MCQOPTIONS
Saved Bookmarks
1. |
Comment on the output of the following C code.#include <stdio.h> int main() { int k; for (k = 0; k < 10; k++) int m = k; printf("%d", m); } |
A. | Redeclaration of m in same scope throws error |
B. | Syntax error in declaration of m |
C. | m is out of scope when printf is called |
D. | No errors, program will show the output 15 |
E. | None of these |
Answer» C. m is out of scope when printf is called | |