View Single Post
  #7 (permalink)  
Old 04-27-2007, 03:51 PM
Legoland Legoland is offline
Member
 
Join Date: Apr 2007
Location: Sweden
Posts: 12
Legoland is on a distinguished road
Calculate what e2 and e1 will be
Hello!
If e1 = 5 and e2 = 8 before the following lines has been executed what values will they have afterwards.
The lines are: int t = e1;
e1 = e2;
e2 = t;

Create a program that shows the new values of e1 and e2

I hope I have exlained this correctly.
Regards Legoland
Reply With Quote