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 / gita

the answer is 10,16.
because x=x++;
means first assign after that that is incremented.
in case of y=++y;
first increment operation is performed. after that assigned.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

1094


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1239


What is the most efficient way to count the number of bits which are set in an integer?

1121


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2147


What is a program flowchart?

1284


What is the purpose of ftell?

1137


Are bit fields portable?

1207


Are enumerations really portable?

1079


What is the difference between memcpy and memmove?

1086


Can a pointer be static?

1132


What are the 5 organizational structures?

1080


How do you determine a file’s attributes?

1134


What is define c?

1156


Define and explain about ! Operator?

1046


What is chain pointer in c?

1115