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

main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}

Answer Posted / dhivya

11 11 13
++i which means i is first incremented and then printed thus i value becomes 11,
i++ which means i is printed and then it is incremented, since the value of i is now 11, it is printed and then incremented to 12.
again ++i , increments i to 13 and then prints.

Is This Answer Correct ?    66 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #line?

1059


When would you use a pointer to a function?

1048


Explain the meaning of keyword 'extern' in a function declaration.

1155


using for loop sum 2 number of any 4 digit number in c language

2350


Explain output of printf("Hello World"-'A'+'B'); ?

1500


What is static and volatile in c?

1226


how should functions be apportioned among source files?

1104


How can I change their mode to binary?

1121


Write a C program to count the number of email on text

1921


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3250


Difference between Function to pointer and pointer to function

1085


If null and 0 are equivalent as null pointer constants, which should I use?

1223


How can you call a function, given its name as a string?

1159


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1558


explain what are actual arguments?

1091