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

#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}

Answer Posted / anand

answer should be 3 5
b = 2 + 3
b = ++a + ++a
here the compiler will work as below

b = ++a + 2
thn
b = 3 + 2
thn
b = 5

Is This Answer Correct ?    9 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a list in c?

1034


List some of the dynamic data structures in C?

1249


What are the types of c language?

1037


What is the use of sizeof?

1022


write a program to concatenation the string using switch case?

2110


What is the difference between text and binary modes?

1197


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1955


Stimulate calculator using Switch-case-default statement for two numbers

2999


Explain about the functions strcat() and strcmp()?

1055


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1532


What is self-referential structure in c programming?

1224


How can I open files mentioned on the command line, and parse option flags?

1074


Is there sort function in c?

1023


How can you tell whether a program was compiled using c versus c++?

1110


What is volatile c?

1022