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 does %p mean c?
Which are low level languages?
What is equivalent to ++i+++j?
What is mean by data types in c?
Explain how can a program be made to print the name of a source file where an error occurs?
What is default value of global variable in c?
i have a written test for microland please give me test pattern
What is the difference between procedural and functional programming?
What are the 5 data types?
Write a program to print all permutations of a given string.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What are predefined functions in c?
Can a file other than a .h file be included with #include?
What is meant by type casting?
How can I delete a file?