Company: Qualcomm
Difficulty: medium
What will be the output of the program given below? #include <stdio.h> int main() { char *c[] = { "ENTER", "NEW", "POINTER", "FIRST" }; char **cp[] = {c + 3, c + 2, c + 1, c}; char ***cpp = cp; printf("%s", **++cpp); printf("%s", *--*++cpp + 3); printf("%s", *cpp[-2] + 3); printf("%s", cpp[-1][-1] + 1); return 0; } POINTERERSTEW POINTERENSTEN POINTNEWENTR POINTERFIRST For which of the below given data structure(s) binary search technique can be used? I) Linked lists II) Arrays Both (I) and (II) Neither (I) nor (II) Only (II) Only (I) What will be the output of the program given below? #include <stdio.h> int g = 4; void fun(void *p) { int (*q)() = p; g++; q(); } int main() { void *p = main; if(g <= 4) fun(p); else printf("%d", g++); return 0; } Compile time error 6 5 4 What will be the output of the program given below? #include <stdio.h> int main() { int num = 124, n = 3; printf("%d", num << 2 >> n); return 0; } 248 3968 54 62 Which of the system given