Predict output for the following code
#include<stdio.h>
#include<string.h>
int main() {
int a[[2]={1,2,3,4};
printf("%d", a[1][0]);
return 0
Answers
Answered by
1
Answer:
It will result an error ...because for 3 value space 4 values are initialized.
a[0]=1
a[1]=2
a[2]=3
for 4 no space
Explanation:
Similar questions