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
Do you have any idea how to compare array with pointer in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is the most efficient way to count the number of bits which are set in an integer?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is a program flowchart?
What is the purpose of ftell?
Are bit fields portable?
Are enumerations really portable?
What is the difference between memcpy and memmove?
Can a pointer be static?
What are the 5 organizational structures?
How do you determine a file’s attributes?
What is define c?
Define and explain about ! Operator?
What is chain pointer in c?