C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 17 16 -1 20 19 17 16 -1 20 19 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);} Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} Runtime error g##g2 100 10012 Syntax error Runtime error g##g2 100 10012 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff1 fff4 fff0 fff2 fff3 fff1 fff4 fff0 fff2 fff3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } None of These 16 64 4 None of These 16 64 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming "My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above. printf("My salary was increased by 15%%!"); printf("My salary was increased by 15'%'!"); printf("My salary was increased by 15%!"); printf("My salary was increased by 15/%!"); printf("My salary was increased by 15%%!"); printf("My salary was increased by 15'%'!"); printf("My salary was increased by 15%!"); printf("My salary was increased by 15/%!"); ANSWER DOWNLOAD EXAMIANS APP