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(i);
}

Answers were Sorted based on User's Feedback



main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / cholan

-1

Is This Answer Correct ?    5 Yes 1 No

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / vignesh1988i

the answer will be -1

Is This Answer Correct ?    2 Yes 0 No

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / vinod

Error.... Cannot convert int to char error at printf(i). If they replaced printf(i) to printf("%d",i) then it would be -1.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

Can we increase size of array in c?

0 Answers  


When should a type cast not be used?

0 Answers  


What are dangling pointers?

1 Answers  


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  


What are runtime error?

0 Answers  


without a terminator how can we print a message in a printf () function.

7 Answers   NIIT,


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

0 Answers  


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


What is the purpose of & in scanf?

0 Answers  


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

0 Answers  


What is scope rule of function in c?

0 Answers  


What is volatile variable in c with example?

0 Answers  


Categories