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...

main()
{
int i = -3,j=2,k=0,m;
m= ++i || ++j && ++k;
printf("%d%d%d",i,j,k,m);
}

Answer Posted / ep

After the execution of the m evaluation the variables can be:

i = -2
j = 2
k = 0
m = 1

All of of this is because compilers do NOT completely
evalute expressions if they can short cut the evaluation.

Anyway, this is very bad programming.

Is This Answer Correct ?    18 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are algorithms important in c program?

1129


Write a code on reverse string and its complexity.

1042


Does c have circular shift operators?

1257


swap 2 numbers without using third variable?

1141


What is string length in c?

1110


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1111


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1222


What is volatile variable in c with example?

1050


What is the function of volatile in c language?

1137


Write a program that accept anumber in words

1764


What is malloc() function?

1173


Explain 'bus error'?

1103


What is the correct declaration of main?

1217


Is it possible to execute code even after the program exits the main() function?

1350


Differentiate fundamental data types and derived data types in C.

1037