Select the correct option to test your answer:
More Computer Questions
Which of the following options changes the fill color of an object back to the default color?
What will be the output of the following code? #include <bits/stdc++.h> using namespace std; void func1(int arr[], int n) { int k = arr[0], i; for (i = 0; i < n - 1; i++) arr[i] = arr[i + 1]; arr[i] = k; } void func(int arr[], int d, int n) { for (int i = 0; i < d; i++) func1(arr, n); } void printArray(int arr[], int n) { for (int i = 0; i < n; i++) cout << arr[i] << " "; } int main() { int arr[] = { 1, 2, 3, 4, 5}; int n = sizeof(arr) / sizeof(arr[0]); func(arr, 3, n); printArray(arr, n); return 0; }
How many times the for loop in the Bellmann Ford Algorithm gets executed?
What will be the output of the following C# code? static void Main(string[] args) { String name = "Dr.Gupta"; Console.WriteLine("Good Morning" + name); }
What will be the output of the following Java program? class access { public int x; static int y; void cal(int a, int b) { x += a ; y += b; } } class static_specifier { public static void main(String args[]) { access obj1 = new access(); access obj2 = new access(); obj1.x = 0; obj1.y = 0; obj1.cal(1, 2); obj2.x = 0; obj2.cal(2, 3); System.out.println(obj1.x + " " + obj2.y); } }