Examveda

What is the output of the following code: int x = 5; cout << "Before: " << x; changeValue(x); cout << "After: " << x; in C++?

A. Before: 5 After: 5

B. Before: 5 After: 10

C. Before: 5 After: 6

D. Compilation error

Answer: Option A


Join The Discussion

Related Questions on Functions and Procedures in C plus plus