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

write a program fibonacci series and palindrome program in c

977


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

1214


Explain the ternary tree?

967


Can a pointer be null?

974


What are the advantages of external class?

1004


What does the function toupper() do?

1064


Write a program to generate random numbers in c?

1047


What is a method in c?

1062


Is it valid to address one element beyond the end of an array?

1120


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

1113


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1109


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

1127


Can you please explain the difference between strcpy() and memcpy() function?

1014


Explain how do you print an address?

1086


What is time complexity c?

940