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.5 9 0.25 1 2 0.5 9 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); None of these 0 1 1 1 0 0 1 0 None of these 0 1 1 1 0 0 1 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 5 Garbage Value 6 0 None of these 5 Garbage Value 6 0 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 1 30 15 -5 10 1 30 15 -5 10 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); 5 9 6 8 7 5 9 6 8 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ float me = 1.1; double you = 1.1; if(me==you) printf("I hate Examveda"); else printf("I love Examveda");} I hate Examians None of These Error I love Examians I hate Examians None of These Error I love Examians ANSWER DOWNLOAD EXAMIANS APP