-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int num[3][4][5], k = 12;
num[0][0] = &k;
printf("%d\n", *num[0][0]);
}
-
- Address of k
- Compilation Error
- Undefined behaviour
- 12
- None of these
Correct Option: B
Compilation Error
main.c: In function ‘main’:
main.c:5:19: error: assignment to expression with array type
num[0][0] = &k;