Select the correct option to test your answer:
More Computer Questions
Which of the below namespace declaration is correct?
. . . . . . . . property allow users to override the expiry time specified.
The incorrect statement with respect to dangling pointers is . . . . . . . .
Queue data structure works on the principle of . . . . . . . .
What will be the time complexity of the following code? #include <bits/stdc++.h> using namespace std; void func(int arr[], int left, int right) { while (left < right) { int temp = arr[left]; arr[left] = arr[right]; arr[right] = temp; left++; right--; } } void printArray(int arr[], int size) { for (int i = 0; i < size; i++) cout << arr[i] << " "; } int main() { int arr[] = {1,4,3,5}; int n = sizeof(arr) / sizeof(arr[0]); func(arr, 0, n-1); printArray(arr, n); return 0; }