C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 1 1 1 2 2 1 2 2 1 1 1 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 4 4 10 5 5 5 10 5 4 3 10 5 3 4 10 5 3 3 10 5 4 4 10 5 5 5 10 5 4 3 10 5 3 4 10 5 3 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 10 11, 11 11, 10 10, 11 10, 10 11, 11 11, 10 10, 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 2 5 5 5 5 5 2 4 4 2 4 5 2 5 5 5 5 5 2 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 II and III III and IV I and II I, III and IV I, II and III II and III III and IV I and II I, III and IV I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} complier error no error no output 0 1 complier error no error no output 0 1 ANSWER DOWNLOAD EXAMIANS APP