Question: 1 2 int n 1 = 1 2 1 3 int n 2 = 5 ; 1 4 int n 3 = + + n

12 int n1=12
13 int n2=5;
14 int n3=++n1-n2--;
What is the result of the code above?
n3=9 and n2=4 and n1=13
n3=7 and n2=5 and n1=13
n3=8 and n2=4 and n1=13
compilation fails on line 14
n3=8 and n2=4 and n1=12
 12 int n1=12 13 int n2=5; 14 int n3=++n1-n2--; What is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!