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 statement declaring array is invalid.
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 values of array are getting scanned through the loop.
The code is correct and runs successfully.
None of these

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 k can’t be initialized.
The commas should be semicolons.
The variable must always be the letter i when using a for loop.
There should be a semicolon at the end of the statement.
The increment should always be ++k .

ANSWER DOWNLOAD EXAMIANS APP