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 / pnkj rajput@kiit,bbsr

Ans. is

12

because

(first check) i++ (no change in the value of 'i' so i=5)

(second check) ++i ('i' increase by 1 so, i=6)

Now, in this the value of 'i' is 6

so, 6 + 6 = 12

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struct node in c?

1127


How can I handle floating-point exceptions gracefully?

1242


Is multithreading possible in c?

1070


how many key words availabel in c a) 28 b) 31 c) 32

1129


Is there any demerits of using pointer?

1119


Are bit fields portable?

1207


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1330


What is the use of bit field?

1238


What is the Purpose of 'extern' keyword in a function declaration?

1147


What is the difference between struct and typedef struct in c?

1171


What is the explanation for the dangling pointer in c?

1178


Did c have any year 2000 problems?

1157


What is a pointer in c?

1695


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3373


Explain can you assign a different address to an array tag?

1124