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
What is context in c?
in linking some of os executables are linking name some of them
How can a process change an environment variable in its caller?
What are run-time errors?
What is meant by preprocessor in c?
List a few unconditional control statement in c.
Differentiate between static and dynamic modeling.
What is the purpose of void in c?
How do you declare a variable that will hold string values?
Explain what are multibyte characters?
What does %d do in c?
What does s c mean in text?
What is the main difference between calloc () and malloc ()?
Is c still relevant?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?