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

What is the difference between ++a and a++?

1146


What is the difference between exit() and _exit() function in c?

1013


What is the use of sizeof () in c?

986


Can you subtract pointers from each other? Why would you?

915


Is the exit() function same as the return statement? Explain.

1035


How can a program be made to print the line number where an error occurs?

1035


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2332


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

972


Is main a keyword in c?

1080


What is the use of getch ()?

1030


What is a dynamic array in c?

1068


Which is the best website to learn c programming?

1024


Is multithreading possible in c?

949


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3243


What is bash c?

954