Home / MCQ Bank / Computer
Computer Functions And Procedures In C Plus Plus

What will be the output of the following C++ code? #include <iostream> using namespace std; void Values(int n1, int n2 = 10) { using namespace std; cout << "1st value: " << n1; cout << "2nd value: " << n2; } int main() { Values(1); Values(3, 4); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 1st value: 1 10 3 4

Related Computer Questions

What command will display the forward/filter table? How many loops are required to implement gnome sorting algorithm? Which of these method of class String is used to extract a single character from a String object? The latest PC keyboards use a circuit that senses the movement by the change in its capacitance. What are these keyboards called? What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] A[1]