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); 5 8 9 7 6 5 8 9 7 6 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 );} The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. There will be a compilation error reported. The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. There will be a compilation error reported. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 13 14 12 Garbage Value 15 13 14 12 Garbage Value 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of conditional compilation Takes care of macros All of these Takes care of include files Acts before compilation Takes care of conditional compilation Takes care of macros All of these Takes care of include files Acts before compilation 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);} 50, 13, 11, 13 50, 13, 24, 13 13, 10, 24, 50 50, 13, 24, 50 13, 13, 24, 13 50, 13, 11, 13 50, 13, 24, 13 13, 10, 24, 50 50, 13, 24, 50 13, 13, 24, 13 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 1 2 Error -2 1 2 Error ANSWER DOWNLOAD EXAMIANS APP