C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 4 2 4 5 5 5 5 2 5 5 2 4 4 2 4 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error 4 5 6 7 4 1 2 3 4 Runtime error Syntax error 4 5 6 7 4 1 2 3 4 Runtime 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? cdefg bcdefg defg fg efg cdefg bcdefg defg fg efg ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when Initialization is a part of definition All of these It is a declaratrion It is a formal parameter Initialization is a part of definition All of these It is a declaratrion It is a formal parameter ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);} 13 11 Compilation error 14 12 13 11 Compilation error 14 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 8 3 None of these 7 3 3 7 3 8 8 3 None of these 7 3 3 7 3 8 ANSWER DOWNLOAD EXAMIANS APP