InterviewSolution
Saved Bookmarks
| 1. |
What is the return value of following function for arr[] = {9, 12, 2, 11, 2, 2, 10, 9, 12, 10, 9, 11, 2} and n is size of this array.int fun(int arr[], int n){int x = arr[0];for (int i = 1; i < n; i++)x = x ^ arr[i];return x;}(A) 0(B) 9(C) 12(D) 2 |
| Answer» None | |