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 / visu

i+++++i=i++ + ++i
remember this expression is nothing but adding two i's

now unary operators hav higher precedence than binary
=>++ executes first
so i++ =5 (since value changes after statement)
and ++i makes it i=6

as i said its jus adding to i's
now ans=i+i=6+6=12

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does * p ++ increment p or what it points to?

1054


Explain what are its uses in c programming?

1014


Explain about the constants which help in debugging?

1306


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1196


What does emoji p mean?

1044


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2739


What is array in C

1099


What is structure data type in c?

967


What are the differences between Structures and Arrays?

1129


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15724


Why c is called free form language?

967


How can I read data from data files with particular formats?

1002


How will you write a code for accessing the length of an array without assigning it to another variable?

999


Is c still relevant?

1034


What is the difference between #include

and #include “header file”?

969