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

How can I use a preprocessorif expression to ?

1022


Do you know pointer in c?

1011


What is pass by value in c?

1034


Describe the difference between = and == symbols in c programming?

1328


How can a string be converted to a number?

995


Process by which one bit pattern in to another by bit wise operation is?

1120


what is stack , heap ,code segment,and data segment

2655


how can use subset in c program and give more example

1956


Explain Basic concepts of C language?

1107


What does 4d mean in c?

1462


What is anagram in c?

896


What is an lvalue in c?

1096


There seem to be a few missing operators ..

1024


all c language question

2404


What is the code in while loop that returns the output of given code?

1930