C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr{7} None of these arr{6} arr[6] arr[7] arr{7} None of these arr{6} arr[6] arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 17 16 20 -1 19 17 16 20 -1 19 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 30 -5 1 15 10 30 -5 1 15 10 ANSWER DOWNLOAD EXAMIANS APP
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 9 0.25 0.5 1 2 9 0.25 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} Error None of These hello garbage value hello 5 Error None of These hello garbage value hello 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of These Can't Say will print Hello World Compiler Error None of These Can't Say will print Hello World Compiler Error ANSWER DOWNLOAD EXAMIANS APP