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

Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

2099


regarding pointers concept

2097


Is c is a middle level language?

1126


Explain the red-black trees?

1202


Why does notstrcat(string, "!");Work?

1207


string reverse using recursion

2534


What is extern variable in c with example?

1056


Is null always equal to 0(zero)?

1097


How can I manipulate strings of multibyte characters?

1159


What does malloc () calloc () realloc () free () do?

1105


What is sizeof int in c?

1115


Explain what is the purpose of "extern" keyword in a function declaration?

1127


What are valid operations on pointers?

1264


Explain bit masking in c?

1193


What are pointers in C? Give an example where to illustrate their significance.

1274