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's the best way of making my program efficient?

1106


How can I insert or delete a line (or record) in the middle of a file?

1016


Why calloc is better than malloc?

1035


Write a program to generate the Fibinocci Series

1235


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1125


The difference between printf and fprintf is ?

1285


What is the heap in c?

1079


How many identifiers are there in c?

1021


program for reversing a selected line word by word when multiple lines are given without using strrev

2478


What is volatile variable in c?

1089


What is p in text message?

988


What is void c?

1079


Explain enumerated types.

1030


What are the main characteristics of c language describe the structure of ac program?

1212


What is the total generic pointer type?

1157