Post Test

Choose the correct option to assing 1 or more elements in array at once in C?
What does the following declaration mean?
' int (*ptr)[10]; '
Does C perform array out of bound checking? What is the output of the following program?
int main()
{
int i;
int arr[5] = {0};
for (i = 0; i <= 5; i++)
printf('%d', arr[i]);
return 0;
}
Predict output of following program.
int main()
{
int i;
int arr[5] = {1};
for (i = 0; i < 5; i++)
printf('%d', arr[i]);
return 0;
}
Predict the output of below program.
#include
int main()
{
int arr[5];
arr[0]=2;
printf('%d', arr[0]+5);
return 0;
}