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=0;
while(+(+i--)!=0)
i-=i++;
printf("%d",i);
}

Answer Posted / rayan

ans is -1.

Initially i == 0, when it enters into while loop

while(+(+i--)!0)

in 1st iteration i value ll be 0 only due to post decrement
operator.

in second iteration as i gets its post decremented value n
becomes -1 & -1 ~= 0 condition gets true & while loop breaks.

here + operator in the loop is doing ntg.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of function in c?

1139


How can a process change an environment variable in its caller?

1127


What is the difference between functions getch() and getche()?

1031


What is wrong with this program statement? void = 10;

1203


Why c is a mother language?

959


How do we make a global variable accessible across files? Explain the extern keyword?

1824


How many levels of indirection in pointers can you have in a single declaration?

1025


Is array name a pointer?

993


How many types of arrays are there in c?

995


In a switch statement, what will happen if a break statement is omitted?

1005


What is volatile variable in c?

1050


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1184


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2686


In a byte, what is the maximum decimal number that you can accommodate?

1067


what are the different storage classes in c?

1116