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 );} 2 0.5 0.25 1 9 2 0.5 0.25 1 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr{6} arr[6] None of these arr{7} arr[7] arr{6} arr[6] None of these arr{7} arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed? 22 12 12 13 22 14 12 13 22 11 11 11 12 10 11 13 22 13 14 14 22 12 12 13 22 14 12 13 22 11 11 11 12 10 11 13 22 13 14 14 ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 6 5 8 7 9 6 5 8 7 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 1, 15 3, 2, 15 1, 2, 5 2, 3, 20 2, 1, 15 3, 2, 15 1, 2, 5 2, 3, 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } 64 4 None of These 16 64 4 None of These 16 ANSWER DOWNLOAD EXAMIANS APP