Marsh Posted February 18, 2013 Author Share Posted February 18, 2013 Read the following statements and tick the box next to the correct answer.int a = 10;int b = 20;a = b;The new values of a and b are:[ ] a = 20 b = 0[ ] a = 20 b = 20[ ] a = 0 b = 10[ ] a = 10 b = 10[ ] a = 30 b = 20[ ] a = 30 b = 0[ ] a = 10 b = 30[ ] a = 0 b = 30[ ] a = 10 b = 20[ ] a = 20 b = 10This is apparently a question that 50% of people fail.http://www.codinghorror.com/blog/2006/07/separating-programming-sheep-from-non-programming-goats.htmlReally interesting article. Link to comment Share on other sites More sharing options...
boyesjs03 Posted February 18, 2013 Share Posted February 18, 2013 A = 20, B = 20 because overwrites the value of A but doesnt change itself :-) Link to comment Share on other sites More sharing options...
Solstice Posted February 18, 2013 Share Posted February 18, 2013 ^A = 20 B = 20Like wtf? People actually fail this??GTFO WANNABES. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now