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 ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is C language being considered a middle level language?

742


ATM machine and railway reservation class/object diagram

4897


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

1019


Explain what is meant by high-order and low-order bytes?

725


What are pointers? What are stacks and queues?

660






how should functions be apportioned among source files?

722


What is spark map function?

670


List some applications of c programming language?

646


How can a string be converted to a number?

631


What is NULL pointer?

749


Explain how to reverse singly link list.

703


What are the disadvantages of external storage class?

689


What does 3 periods mean in texting?

691


Why can arithmetic operations not be performed on void pointers?

706


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1497