1. Engineering
  2. Computer Science
  3. using c...

Question: using c...

Question details

Question 1: Given the following function: void increment (int & x) ( x+ti and the following code in the main function: int x = 5; increment (x) ; cout << x << endl; The output is: a) 5 b) 6 c) 7 d)a compiler error occurs Question 2: Using the increment function given in Question 1 and the following code in the main function: const int x 5; increment (x) cout << x << endl; The output is: a) 5 b)6 c) 7 d)a compiler error occurs Using C++
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution