C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 1 2 0.25 9 0.5 1 2 0.25 9 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a reserved keyword for C? main default register auto case main default register auto case ANSWER DOWNLOAD EXAMIANS APP
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 values of array are getting scanned through the loop. The code is correct and runs successfully. The code is erroneous since the statement declaring array is invalid. None of these 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. The code is erroneous since the statement declaring array is invalid. None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);} 65486, 65487 65486, 65486 None of these 65486, 65488 65486, 65490 65486, 65487 65486, 65486 None of these 65486, 65488 65486, 65490 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... stderr Data file no such function in 'C'. string stdin stderr Data file no such function in 'C'. string stdin ANSWER DOWNLOAD EXAMIANS APP
C Programming Functions have .......... Block scope Function scope No scope at all Local scope File scope Block scope Function scope No scope at all Local scope File scope ANSWER DOWNLOAD EXAMIANS APP