Single Choice
Not Set
QWhich of the following statements are correct about the program below?
#include
void main()
{
int size, i;
scanf("%d", &size);
int arr[size];
for(i=1; i<=size; i++)
{
scanf("%d", arr[i]);
printf("%d", arr[i]);
}
}
ID: #1431
Array in C Language
821 views
Question Info
#1431Q ID
Not SetDifficulty
Array in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The code is erroneous since the statement declaring array is invalid.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic