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 / shivam shukla

all of you are breaking the statement i+++++i correctly as
i++ + ++i and your answer 12 is also write but you are
explaining it the wrong way......first i++ will make the
value 6 and again a ++i will make it 7 but inn actual
calculation of i++ + ++i....5+7.....will be calculated
hence we get the value 12

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are local variables initialized to zero by default in c?

1053


What is the difference between new and malloc functions?

1131


What is the explanation for the dangling pointer in c?

1117


What are dangling pointers? How are dangling pointers different from memory leaks?

1320


Why do we use int main?

1103


Why double pointer is used in c?

1043


Explain what is a program flowchart and explain how does it help in writing a program?

1099


What is meant by gets in c?

1190


Explain heap and queue.

1090


explain what are actual arguments?

1091


Write a program to print “hello world” without using semicolon?

1123


what is the basis for selection of arrays or pointers as data structure in a program

4309


which type of aspect you want from the student.

2166


Write a program to swap two numbers without using a temporary variable?

1128


What header files do I need in order to define the standard library functions I use?

1061