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 x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}

output??

Answer Posted / mazrul

in x=x++;
the above expression is postfix
first we assign 10 into x then increment it by one so value
of x become 11
ic case of
y=++y;
is prefix expression firstly we increment value of y
then assign it to y.
so y become
y=16

Is This Answer Correct ?    53 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %p mean c?

1079


Which are low level languages?

1104


What is equivalent to ++i+++j?

1098


What is mean by data types in c?

1036


Explain how can a program be made to print the name of a source file where an error occurs?

1200


What is default value of global variable in c?

994


i have a written test for microland please give me test pattern

2738


What is the difference between procedural and functional programming?

1086


What are the 5 data types?

1146


Write a program to print all permutations of a given string.

1203


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1259


What are predefined functions in c?

1110


Can a file other than a .h file be included with #include?

1168


What is meant by type casting?

1061


How can I delete a file?

1071