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

please explain every phase in the "SDLC" in the dotnet.

2181


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

682


Explain what will the preprocessor do for a program?

606


What does void main () mean?

736


How does placing some code lines between the comment symbol help in debugging the code?

549






What is an expression?

659


Explain what does a function declared as pascal do differently?

643


What are the uses of null pointers?

591


Which built-in library function can be used to match a patter from the string?

748


What do header files do?

604


What is %s and %d in c?

594


What is the size of array float a(10)?

658


How many header files are in c?

554


What are the general description for loop statement and available loop types in c?

689


Is a pointer a kind of array?

602