Total Answers and Comments: 4
Last Update: October 17, 2006
No best answer available. Please pick the good answer available or submit your answer.
February 23, 2006 09:56:08 #2
Rohan
Member Since: November 2005 Contribution: 11
RE: Consider the following program segmentint n, ... Ans is ( B )
sum 6 reason is
case 2 : sum sum+2 //sum 1+2 sum 3 and no break so
case 3 : sum* 2 //sum 3*2 sum 6
break;
sum 6 is the answer
Is this answer useful? Yes | No
October 17, 2006 06:04:28 #4
SreeAravind
RE: Consider the following program segmentint n, ... Hi Some of them wrote wrong answers
its answer is B:6
Because there is no break statement in case 2 so it further exec case 3 also...
Is this answer useful? Yes | No
Go To Top