C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 20 17 19 16 -1 20 17 19 16 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 Infinite Loop 5 5 5 5 5 None of These 5 4 3 2 1 Infinite Loop 5 5 5 5 5 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 2 1 1 2 1 1 2 2 2 1 1 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 9 8 5 6 7 9 8 5 6 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Ok here Error Forget it None of These Ok here Error Forget it None of These ANSWER DOWNLOAD EXAMIANS APP