main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / mazrul
in x=x++;
the above expression is postfix
first we assign 10 into x then increment it by one so value
of x become 11
ic case of
y=++y;
is prefix expression firstly we increment value of y
then assign it to y.
so y become
y=16
Is This Answer Correct ? | 53 Yes | 17 No |
Post New Answer View All Answers
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Difference between Shallow copy and Deep copy?
What does dm mean sexually?
What is a scope resolution operator in c?
How do you convert strings to numbers in C?
Write a program to reverse a given number in c language?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is selection sort in c?
what is the difference between 123 and 0123 in c?
What are the advantages of union?
What is pass by value in c?
Can we replace the struct function in tree syntax with a union?
State the difference between x3 and x[3].
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is ctrl c called?