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

void main()
{
int i=5;
printf("%d",i+++++i);
}

Answer Posted / vamsi

Hi Guys.....

The answer is

6+6 = 12

The compiler will take the expression as
i++ + ++i
And the expression would be evaluated from Right to left ...

so answer is 12 and i=7;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #ifdef ? What is its application?

1112


List some applications of c programming language?

956


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2743


Explain modulus operator. What are the restrictions of a modulus operator?

1015


What is || operator and how does it function in a program?

1091


Write a program to swap two numbers without using third variable in c?

1130


What is volatile, register definition in C

1105


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

1050


What are the 4 types of organizational structures?

1101


What is the difference between text and binary i/o?

1054


How can I read a binary data file properly?

1166


Which is better pointer or array?

1028


What is "Duff's Device"?

1167


What are directives in c?

974


Why is c faster?

1107