-
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);
}
-
- Compilation Error
- 16 15 13 21
- 21 13 15 16
- Runtime Error
- None of these
Correct Option: B
16 15 13 21