Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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.200
b.1
c.-1
d.50

Answer Posted / nila

the right answer is x=50,why?.if condition is true
and then after checking if condition x is assigned a value
of 50.so the final answer is 50.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2245


What is c standard library?

1146


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5895


what are the different storage classes in c?

1120


What is the argument of a function in c?

991


What is a method in c?

1063


What is a struct c#?

999


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2107


Do character constants represent numerical values?

1286


What is the difference between printf and scanf )?

1023


What is structure padding in c?

1058


will u please send me the placement papers to my mail???????????????????

1794


What is the 'named constructor idiom'?

1032


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1104


How to set file pointer to beginning c?

1145