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);} Compilation Error None of these. will print Hello World will print garbage value Compilation Error None of these. will print Hello World will print garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=3 c=3 d=5 c=5 d=3 c=5 d=5 c=3 d=3 c=3 d=5 c=5 d=3 c=5 d=5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 12 Error 1 11 12 Error 1 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 2 3 3 2 3 3 4 2 4 2 2 3 3 2 3 3 4 2 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator from the following has the lowest priority? Unary-operator Comma operator Assignment operator Division operator Conditional operator Unary-operator Comma operator Assignment operator Division operator Conditional operator ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 24 12 It will not compile because not enough initializers are given 7 6 24 12 It will not compile because not enough initializers are given 7 6 ANSWER DOWNLOAD EXAMIANS APP