main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / shruti
the ans is 11 and 16..
y = ++y;
wont make any differance as a statement.
we will have to think about it only if we are using it in
loops.. or conditional statements etc.. :-)
so dont get confused.
dont forget ur basics..
C is a procedural language.
hence
x = x++;
will be completely executed first
the value of x = 11.
and then
y = ++y;
will be executed and value will be changed to 16
| Is This Answer Correct ? | 11 Yes | 11 No |
Post New Answer View All Answers
Describe the modifier in c?
What is string function in c?
what does static variable mean?
Explain argument and its types.
What is difference between class and structure?
How can I read in an object file and jump to locations in it?
What is structure padding in c?
Is python a c language?
Why we write conio h in c?
How do I get an accurate error status return from system on ms-dos?
What does s c mean in text?
c program to compute AREA under integral
What is const keyword in c?
What are the functions to open and close file in c language?
What is the difference between if else and switchstatement