Company: Qualcomm IISc

Difficulty: easy

Problem Statement

What will be the output of the program given below? #include <stdio.h> int main(void) { char arr[3] = {1, 2, 3}; char *p = arr; p = p + 3; p = p << 1; *p = 4; printf("%d %d %d", arr[1], arr[2]); return 0; }

More Qualcomm IISc OA questionsInterview experiences