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 explain every phase in the "SDLC" in the dotnet.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Explain what will the preprocessor do for a program?
What does void main () mean?
How does placing some code lines between the comment symbol help in debugging the code?
What is an expression?
Explain what does a function declared as pascal do differently?
What are the uses of null pointers?
Which built-in library function can be used to match a patter from the string?
What do header files do?
What is %s and %d in c?
What is the size of array float a(10)?
How many header files are in c?
What are the general description for loop statement and available loop types in c?
Is a pointer a kind of array?