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.25 9 0.5 1 2 0.25 9 0.5 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 10 11 11 10 20 21 10 10 20 21 20 10 20 21 21 10 10 11 11 10 20 21 10 10 20 21 20 10 20 21 21 ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ p is a pointer to a 5 elements integer array. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=10; i=!i>14; printf("i=%d", i);} 0 1 14 10 0 1 14 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} None of These 300 Error %d\n None of These 300 Error %d\n ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? 1 Program do no return a value. 2 -1 1 Program do no return a value. 2 -1 ANSWER DOWNLOAD EXAMIANS APP