

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> void fun(int *ptr) { int k = 0; for(k = 0; k < 4; k++) printf("%d ", ptr[k]); } void main() { int n[5] = {16, 15, 13, 21}; fun(&n); } |
A. | Compilation Error |
B. | 16 15 13 21 |
C. | 21 13 15 16 |
D. | Runtime Error |
E. | None of these |
Answer» C. 21 13 15 16 | |