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

Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

0 Answers  


What is structure padding ?

3 Answers   HP,


program to locate string with in a string with using strstr function

2 Answers   Huawei, Shreyas,


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


what is Array?

3 Answers  


Why is sprintf unsafe?

0 Answers  


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


Do pointers store the address of value or the actual value of a variable?

0 Answers   Fidelity,


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack

6 Answers  


What is sizeof return in c?

0 Answers  


5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

1 Answers   TCS,


Categories