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>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}

Answer Posted / nb

i = 2 (i dont change)
j = 6 (++i = 3 and in i++ increments after calculating j )

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is %d used in c?

1008


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1286


What is the function of multilevel pointer in c?

1088


Write a progarm to find the length of string using switch case?

2069


Write a C/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 maximum number of concurrent threads that the InnoDB plug-in can create.

1942


Explain the use of 'auto' keyword in c programming?

1122


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1035


How can you allocate arrays or structures bigger than 64K?

1150


What is a protocol in c?

1015


Write a program to swap two numbers without using the third variable?

1078


What does main () mean in c?

1103


Do you know what are the properties of union in c?

1083


How does #define work?

1084


What are the advantages of using new operator as compared to the function malloc ()?

1354


What is scope of variable in c?

1046