I have written code to access array element in structure
11Code:#include<stdio.h> struct s { int A[10]; //structure member }v; int main () { int i = 0; struct s array[5] = {11, 12, 13, 14,15}; for (i=0; i<5; i++) { printf("%d \n", array[i]); } return 0; }
0
0
0
0
Can someone tell me what's wrong with code?