Find the output of the following program
int main()
{
int i; int arr[6]={1};
for(i=0;i<6;i++)
{
printf("%d",arr[i]);
}
return 0;
}
1
1 1 1 1 1 1
2
0 0 0 0 0 0
3
1 0 0 0 0 0
4
1 followed by five garbage values
Find the output of the following program
int main()
{
int i; int arr[6]={1};
for(i=0;i<6;i++)
{
printf("%d",arr[i]);
}
return 0;
}