![]() |
How this Actually Works
int a=10,b;
b=a++ + ++a; specially with a++ ? |
Re: 100 Multiple choice questions in C
int a=10,b;
b=a++ + ++a; how this actually works ? |
Re: How this Actually Works
Whatever result you see is undefined because you are using modifiers more than once on the same variable in the same statement.
|
Re: How this Actually Works
For prefix increment:
Code:
int a=10;For postfix increment: Code:
int a=10;Here is another example: Code:
int a=10, b; |
| All times are GMT +5.5. The time now is 15:35. |