N
Nishu
Hi All,
What is the C-standard expected result for referring the
'uninitialized element' of the partial initialized automatic array ?
/*************************/
#include <stdio.h>
int main(void)
{
int arr[2][3][4] = { 0, 1, 2, 3,
4, 5, 6, 7,
8, 9, 10, 11,
12, 13, 14, 15,
16, 17, 18, 19,
20, 21
} ;
printf(" arr[1][2][2] = %d \n", arr[1][2][3]);
return 0;
}
/*************************/
Is the result defined as 0 by standard? If yes, then, why is that so?
Thanks,
Naresh
What is the C-standard expected result for referring the
'uninitialized element' of the partial initialized automatic array ?
/*************************/
#include <stdio.h>
int main(void)
{
int arr[2][3][4] = { 0, 1, 2, 3,
4, 5, 6, 7,
8, 9, 10, 11,
12, 13, 14, 15,
16, 17, 18, 19,
20, 21
} ;
printf(" arr[1][2][2] = %d \n", arr[1][2][3]);
return 0;
}
/*************************/
Is the result defined as 0 by standard? If yes, then, why is that so?
Thanks,
Naresh