C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 4 4 2 5 5 2 4 5 5 5 5 2 4 4 2 5 5 2 4 5 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 12 15 14 Garbage Value 13 12 15 14 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 5 None of these Error 6 9 5 None of these Error 6 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} make an infinite loop Some address will be printed Error None of These make an infinite loop Some address will be printed Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 Garbage Value 10 20 30 40 50 10 20 30 40 50 None of These Error 10 20 30 40 50 Garbage Value 10 20 30 40 50 10 20 30 40 50 None of These Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 5 5 5 5 None of These 5 4 3 2 1 Infinite Loop 5 5 5 5 5 None of These 5 4 3 2 1 Infinite Loop ANSWER DOWNLOAD EXAMIANS APP