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 / koushik ramesh

this program output is 12.

first is i++ is 5 only because this the post increment
first using the value after increment.

whenever i++ + the value of is 6.
++ i means this is the pre-increment.first increment
the value after using the variable this step i will become
7.
total is i++ =5
i++ + =6
++ i=7
i++ + ++i= 12. this is posted by Ramesh(MCA)Nizam
college.HYDERABAD

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C program to count the number of email on text

1921


what is a constant pointer in C

1182


What is character constants?

1187


What is c method?

1000


Which header file is essential for using strcmp function?

1485


how can f be used for both float and double arguments in printf? Are not they different types?

1072


How can I implement sets or arrays of bits?

1048


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1238


What is the correct code to have following output in c using nested for loop?

1087


What is an lvalue?

1065


Explain how can I pad a string to a known length?

1197


What does it mean when the linker says that _end is undefined?

1099


Which node is more powerful and can handle local information processing or graphics processing?

1324


How can you access memory located at a certain address?

1121


What do header files do?

1078