C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 2 Compilation error a[1] = 2 a[0] = 3 a[1] = 3 a[0] = 2 Compilation error a[1] = 2 a[0] = 3 a[1] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these It cannot be applied to an expression It associates from the right It is a unary operator The operand can come before or after the operator All of these It cannot be applied to an expression It associates from the right It is a unary operator The operand can come before or after the operator ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=0 x=1 Error x=4 x=5 x=0 x=1 Error x=4 x=5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? 2 -1 Program do no return a value. 1 2 -1 Program do no return a value. 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = 1, +i = 1 None of These i = -1, +i = 1 i = -1, +i = -1 i = 1, +i = 1 None of These i = -1, +i = 1 i = -1, +i = -1 ANSWER DOWNLOAD EXAMIANS APP