C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 19 17 16 20 -1 19 17 16 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It cannot be applied to an expression It associates from the right The operand can come before or after the operator All of these It is a unary operator It cannot be applied to an expression It associates from the right The operand can come before or after the operator All of these It is a unary operator ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, III and IV II and III I and II III and IV I, II and III I, III and IV II and III I and II III and IV I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output given program?#includevoid main(){int i = -10;for(;i;printf("%d ", i++));} Complier error -10 to -1 -10 to infinite -10 to 0 Complier error -10 to -1 -10 to infinite -10 to 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error None of these. will print Hello World will print garbage value Compilation Error None of these. will print Hello World will print garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct output for the following program.#includevoid main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);} 13, 13, 24, 13 50, 13, 24, 13 50, 13, 11, 13 50, 13, 24, 50 13, 10, 24, 50 13, 13, 24, 13 50, 13, 24, 13 50, 13, 11, 13 50, 13, 24, 50 13, 10, 24, 50 ANSWER DOWNLOAD EXAMIANS APP