C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value h hi Garbage Value Error hi followed by garbage value h hi Garbage Value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? bcdefg cdefg defg efg fg bcdefg cdefg defg efg fg ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 5 5 5 5 5 4 3 2 1 Compilation Error Infinite Loop None of these 5 5 5 5 5 5 4 3 2 1 Compilation Error Infinite Loop None of these 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 6 7 5 8 9 6 7 5 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 11 12 Compilation error 13 14 11 12 Compilation error 13 14 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} None of these 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 4 5 6 7 8 9 10 1 2 3 10 None of these 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 4 5 6 7 8 9 10 1 2 3 10 ANSWER DOWNLOAD EXAMIANS APP