Select the correct option to test your answer:
More Computer Questions
Which header field defines meta information?
PDF stands for ________?
What will happen when the structure is declared?
What is the output of the following program? #include<stdio.h> #include<limits.h> int min_jumps(int *arr, int strt, int end) { int idx; if(strt == end) return 0; if(arr[strt] == 0) // jump cannot be made return INT_MAX; int min = INT_MAX; for(idx = 1; idx <= arr[strt] && strt + idx <= end; idx++) { int jumps = min_jumps(arr, strt + idx, end) + 1; if(jumps < min) min = jumps; } return min; } int main() { int arr[] ={1, 2, 3, 4, 5, 4, 3, 2, 1},len = 9; int ans = min_jumps(arr, 0, len-1); printf("%d\n",ans); return 0; }
What will be the output of the following C# code? static void Main(string[] args) { String c = "Hello"; String a ; a = c.Replace('l', 'w'); Console.WriteLine(a); Console.ReadLine(); }