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 7 6 8 5 9 7 6 8 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 7 5 0 6 Compiler Error 7 5 0 6 Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} 065 65 Syntax error 053 65 53 65 65 65 065 65 Syntax error 053 65 53 65 65 65 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=4 j=2 i=5 j=2 i=3 j=2 the behavior is undefined i=4 j=2 i=5 j=2 i=3 j=2 the behavior is undefined ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. There is no difference between them. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 None of These Compiler Error sizeof(i)=1 sizeof(i)=2 None of These Compiler Error sizeof(i)=1 ANSWER DOWNLOAD EXAMIANS APP