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); 6 9 5 7 8 6 9 5 7 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is None of these strrchr() strnstr() strstr() laststr() None of these strrchr() strnstr() strstr() laststr() 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 );} A run time error will be generated. The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. The program will not enter into the loop. A run time error will be generated. The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } 3 hello None of these Linking error Compiler Error 3 hello None of these Linking error Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 1289 0289 Syntax error 713 0713 1289 0289 Syntax error 713 0713 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} 11 12 None of these 10 15 11 12 None of these 10 15 ANSWER DOWNLOAD EXAMIANS APP