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

Answers were Sorted based on User's Feedback



main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / madhu

hey how come 15 ....
ans is 11,16

Is This Answer Correct ?    5 Yes 7 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / sateesndaruh varma ba

x=x++ it means the x value is first assignto x and then increment by 1

so here in this given value of x=10
it become" x= 11" in output

y=++y it means pre increment so first y value is incremented and than it will assignto y

finally y=16

Is This Answer Correct ?    2 Yes 5 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / daya

11 16

Is This Answer Correct ?    2 Yes 5 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / ankit

11 16 is correct ..
value of x is incremented and is saved in memeory and at
the time of display it will be 11,
as in case of y it will be incremented and will store the
incremented value to be displayed for y.

Is This Answer Correct ?    0 Yes 3 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / sheikh rasel

11

15

Is This Answer Correct ?    2 Yes 10 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / nirmala

11,15

Is This Answer Correct ?    3 Yes 19 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / rasel

11 15

Is This Answer Correct ?    0 Yes 16 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / kalai

10,15

Is This Answer Correct ?    1 Yes 22 No

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??..

Answer / mannucse

35 39

Is This Answer Correct ?    6 Yes 48 No

Post New Answer

More C Interview Questions

How do you search data in a data file using random access method?

0 Answers  


WAP to find that given no is small or capital

3 Answers  


Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

12 Answers   MIT, TCS,


Give the Output : * * * * * * * * * *

2 Answers  


Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female

5 Answers   Infosys, Luminous,


Why main is not a keyword in c?

0 Answers  


how to swap 2 numbers within a single statement?

4 Answers  


Do you know what is a programing language ?

0 Answers  


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

0 Answers  


What does & mean in scanf?

0 Answers  


fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }

17 Answers   NDS,


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

0 Answers  


Categories