AD1

Wednesday, 11 January 2017

what will be the output of the following program


#include "stdio.h"
int main()
{
int numbers[5];// integer array
for(int i=0;i<=4;i++)
{
printf("%d\n",numbers[i]);
}
return 0;
}
view raw array.c hosted with ❤ by GitHub
output will be garbage values
uninitialized array elements have garbage values

No comments:

Post a Comment