Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 : What is the output of the following C + + statements? C + + statements void Fexam ( int & v 1

Q2: What is the output of the following C++ statements?
C++ statements
void Fexam(int & v1, int v2)
(v1++;
if )==(4 cout v1+v2 end 1 ;
else if )==(4 cout v1 end1;
else cout v2 endl; }
void main()
int n=10,a=1;
Fexam (a,n);
cout ++a end 1; }
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is Indian Polity and Governance ?

Answered: 1 week ago

Question

2. List the advantages of listening well

Answered: 1 week ago