Select the correct option to test your answer:
More Computer Questions
%lf is used to display?
What will be the output of the following code? #include <bits/stdc++.h> using namespace std; int func(int arr[], int s, int e) { if (s == e) return 0; if (arr[s] == 0) return INT_MAX; int min = INT_MAX; for (int i = s + 1; i <= e && i <= s + arr[s]; i++) { int jumps = func(arr, i, e); if(jumps != INT_MAX && jumps + 1 < min) min = jumps + 1; } return min; } int main() { int arr[] = {1, 3, 6, 3, 8, 5}; int n = sizeof(arr)/sizeof(arr[0]); cout << func(arr, 0, n-1); return 0; }
'AS' clause is used in SQL for
Which of the following is not a mode in starting Windows?
What is the correct way to open a file for writing in C#?