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

initially a=1,b=0
++a=2 //1+1=2
++a=3 //2+1=3
b=2+3=5
answer:a=3 b=5

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are 16- and 32-bit numbers stored?

1326


Are the outer parentheses in return statements really optional?

1159


How can you find the exact size of a data type in c?

1045


What language is c written?

1099


Can we initialize extern variable in c?

1184


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

1573


What is the value of c?

1131


Is fortran still used today?

1149


Can you write the algorithm for Queue?

2174


Why isnt there a numbered, multi-level break statement to break out

1099


Explain what is wrong with this statement? Myname = ?robin?;

1638


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2097


In c programming language, how many parameters can be passed to a function ?

1167


How can you be sure that a program follows the ANSI C standard?

1656


what is the height of tree if leaf node is at level 3. please explain

2199