0
Which of the following statements are correct about the program below?#include<stdio.h>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]); }}
- AThe code is erroneous since the statement declaring array is invalid.
- BThe code is erroneous since the subscript for array used in for loop is in the range 1 to size.
- CThe code is correct and runs successfully.
- DThe code is erroneous since the values of array are getting scanned through the loop.
- ENone of these
Correct answer: A