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...

#include<stdio.h>
main()
{ int i=5;
printf("%d",i*i-- - --i*i*i++ + ++i);

}

tell the answer with correct reason .specially reason is
important nt answer
ans by turbo c is -39

Answer Posted / myname

It it not an easy question.

After investigating it a little bit, I would say:

- It is undefined behaviour, since "i" is being modified more than once between two sequence points.
- I bet that the turbo c answer is not -39, but -34 (5*5 - 4*4*4 + 5) = -34 (not important, anyway, since any other compiler can reorder the operations and give you any other result since, as I have previously said, it is undefined behaviour).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1418


How can you determine the maximum value that a numeric variable can hold?

1236


Explain Function Pointer?

1183


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1727


Write a Program to find whether the given number or string is palindrome.

1280


What is the use of #include in c?

1089


Why is c still so popular?

1050


What are categories used for in c?

1100


What does it mean when a pointer is used in an if statement?

1111


What is modifier & how many types of modifiers available in c?

1032


When should a type cast be used?

1018


What is the general form of #line preprocessor?

1005


Explain about block scope in c?

1094


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2255


Differentiate between the = symbol and == symbol?

1302