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
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Explain the difference between getch() and getche() in c?
What is the use of in c?
What is c language in simple words?
program for reversing a selected line word by word when multiple lines are given without using strrev
What is n in c?
What is string function c?
Explain bit masking in c?
Does sprintf put null character?
What are structure members?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
what are the facialities provided by you after the selection of the student.
What does node * mean?
What is data structure in c and its types?
What is echo in c programming?