-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int Array[2][5];
Array[][] = {{10, 20, 30, 40, 50}, {40, 50, 60, 70, 80}};
printf("%d\n", Array[3][4]);
}
-
- Garbage value
- Compilation Error
- 30 70
- Undefined behaviour
- None of these
Correct Option: B
Compilation Error
main.c: In function ‘main’:
main.c:5:15: error: expected expression before ‘]’ token
Array[][] = {{10, 20, 30, 40, 50}, {40, 50, 60, 70, 80}};