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
Write a program to print all permutations of a given string.
What are data structures in c and how to use them?
What is a header file?
Explain what is wrong with this program statement?
What do you mean by dynamic memory allocation in c? What functions are used?
What is anagram in c?
Are pointers integer?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is define c?
What is an auto keyword in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
How will you declare an array of three function pointers where each function receives two ints and returns a float?
I need a sort of an approximate strcmp routine?
How can you find the day of the week given the date?
How can I remove the trailing spaces from a string?