|
-
September 13th, 2005, 09:25 PM
#1
Undefined Behaviour or What ???
Is the behaviour of such statements defined ???
int i;
i = ++i;
i = ++i + ++i;
i = ++i + i++;
In C++ you are not to modify the value of a variable more than once between 2 "sequence points".
So i was wondering if this is fine in C#.
Does C# have any standards defined like the C++ standards???
Thanks In Advance
C++ program ran... C++ program crashed... C++ programmer quit !!   
Regards
Shaq
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|