C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 4, c = 8 a = 3, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 a = 3, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 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. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The loop will run infinitely many times. The program will not enter into the loop. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The loop will run infinitely many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} p q x nullq where x can be p or nullp depending on the value of NULL nullp nullq Depends on the compiler p q x nullq where x can be p or nullp depending on the value of NULL nullp nullq Depends on the compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these The operand can come before or after the operator It associates from the right It cannot be applied to an expression It is a unary operator All of these The operand can come before or after the operator It associates from the right It cannot be applied to an expression It is a unary operator ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... ASCII value of the input read. 1 0 The actual values read for each argument. The number of successful read input values. ASCII value of the input read. 1 0 The actual values read for each argument. The number of successful read input values. ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. It should be initialized. None of these. It should be declared. It should be both declared and initialized. It should be initialized. None of these. It should be declared. ANSWER DOWNLOAD EXAMIANS APP