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

Give the logic for this

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=10,b;
b=++a + ++a;
printf("%d", b);
getch();
}
Output: 24......How?

Answer Posted / krishnaraogm

in first increment the a will become 11. And the second
increment the a will become 12. b=++a + ++a ; have same
variable so b=12+12=24

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program of advanced Fibonacci series.

1099


What is return in c programming?

920


differentiate built-in functions and user – defined functions.

1042


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1915


Explain how do you generate random numbers in c?

1044


What are static variables in c?

1031


What is the purpose of void in c?

997


Describe static function with its usage?

1156


Why c is known as a mother language?

1036


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2136


Explain high-order and low-order bytes.

1052


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

5144


Explain how are 16- and 32-bit numbers stored?

1210


What is the difference between array and pointer in c?

1092


Explain how do you determine a file’s attributes?

1001