C Programming
Which of the following statements are correct about the program below?#includevoid main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }}

The code is erroneous since the subscript for array used in for loop is in the range 1 to size.
The code is erroneous since the statement declaring array is invalid.
None of these
The code is erroneous since the values of array are getting scanned through the loop.
The code is correct and runs successfully.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++)

The variable must always be the letter i when using a for loop.
The commas should be semicolons.
The variable k can’t be initialized.
There should be a semicolon at the end of the statement.
The increment should always be ++k .

ANSWER DOWNLOAD EXAMIANS APP