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
Explain what are the standard predefined macros?
How can I implement a delay, or time a users response, with sub-second resolution?
What is the newline escape sequence?
Explain goto?
What is the use of header?
What are the types of bitwise operator?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is a file descriptor in c?
Explain what are global variables and explain how do you declare them?
Are there namespaces in c?
What are identifiers c?
Explain bitwise shift operators?
What is difference between arrays and pointers?
What is a pointer on a pointer in c programming language?
What are loops in c?