Question: What is the value of the variable c after the following instructions? int a, b, c; a = 3; b = a + 2;

What is the value of the variable c after the following instructions?

 

What is the value of the variable c after the following instructions? int a, b, c; a = 3; b = a + 2; a++; c = a+b; Answer: I

Step by Step Solution

3.57 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets break down the instructions step by step int a b c This declares three integer ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!