C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value None of these. will print Hello World Compilation Error will print garbage value None of these. will print Hello World Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 0 1 33 -1 Compilation Error 0 1 33 -1 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 2 1 1 1 1 2 2 2 2 1 1 1 1 2 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 3 4 10 5 5 5 10 5 4 4 10 5 3 3 10 5 4 3 10 5 3 4 10 5 5 5 10 5 4 4 10 5 3 3 10 5 4 3 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? fg cdefg bcdefg efg defg fg cdefg bcdefg efg defg ANSWER DOWNLOAD EXAMIANS APP
C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 – 1 215 216 – 1 None of these 216 215 – 1 215 216 – 1 None of these 216 ANSWER DOWNLOAD EXAMIANS APP