Read the folllowing code# define MAX 100# define MIN 100........if(x>MAX)x=1;else if(x<MIN)x=-1;x=50;if the initial value of x=200,what is the vlaue after executing this code?a.200b.1c.-1d.50

D
This question is related to TCS Interview

Showing Answers 1 - 3 of 3 Answers

laxmikanth

  • Feb 10th, 2006
 

The ans is 50 irrespective of the initial value of x bcos at the end of the code we are overwriting the variable x with 50.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions