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

What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2246


What is the best style for code layout in c?

1086


What are the 4 types of unions?

1023


How can you increase the allowable number of simultaneously open files?

1139


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1109


Does c have function or method?

983


Who invented bcpl language?

1176


What is the meaning of ?

1023


In which header file is the null macro defined?

1334


Write a program of prime number using recursion.

1067


what do you mean by enumeration constant?

997


Can you please explain the difference between malloc() and calloc() function?

1104


What is FIFO?

1664


What is identifier in c?

1002


What is the purpose of clrscr () printf () and getch ()?

1060