C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 19 20 17 -1 16 19 20 17 -1 16 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It associates from the right The operand can come before or after the operator It is a unary operator It cannot be applied to an expression All of these It associates from the right The operand can come before or after the operator It is a unary operator It cannot be applied to an expression All of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); } absiha None of these asiha hai haasi absiha None of these asiha hai haasi ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} None of these 3 7 3 8 8 3 7 3 None of these 3 7 3 8 8 3 7 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} 5 5.600000 0 5.600000 6 5.600000 Complier error 5 5.600000 0 5.600000 6 5.600000 Complier error ANSWER DOWNLOAD EXAMIANS APP