C Programming Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of These Can't Say will print Hello World Compiler Error None of These Can't Say will print Hello World Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage value 0 0 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile Garbage value 0 0 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } Compiler Error Linking error None of these 3 hello Compiler Error Linking error None of these 3 hello ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } H Some address will be printed Hello None of these. H Some address will be printed Hello None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . There should be a semicolon at the end of the statement. The commas should be semicolons. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. The increment should always be ++k . There should be a semicolon at the end of the statement. The commas should be semicolons. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is the correct way of declaring a float pointer: float ptr; None of these *float ptr; float *ptr; float ptr; None of these *float ptr; float *ptr; ANSWER DOWNLOAD EXAMIANS APP