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 is a shell structure examples?
What is the significance of an algorithm to C programming?
What is the ANSI C Standard?
What is operator precedence?
Why can’t we compare structures?
Is a house a mass structure?
What are the properties of union in c?
What is the use of sizeof () in c?
What is the use of putchar function?
What are the types of variables in c?
What is keyword with example?
What is ambagious result in C? explain with an example.
When should volatile modifier be used?
what is the basis for selection of arrays or pointers as data structure in a program
Explain the term printf() and scanf() used in c language?