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 will print Hello World None of these. Compilation Error will print garbage value will print Hello World None of these. Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error None of these. Unequal Equal Error None of these. Unequal Equal ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; We cannot change the value pointed by ptr. Both of the above We can change the pointer as well as the value pointed by it. We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. Both of the above We can change the pointer as well as the value pointed by it. We cannot change the pointer ptr itself. 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); 7 5 6 8 9 7 5 6 8 9 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 5 5 2 4 5 2 4 4 5 5 5 2 5 5 2 4 5 2 4 4 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program Must contain at least one function. None of these Needs input data. Need not contain any function. Must contain at least one function. None of these Needs input data. Need not contain any function. ANSWER DOWNLOAD EXAMIANS APP