|
-
August 4th, 2006, 02:52 PM
#1
Dumb C++ Question
Hey, sorry for the silly question, but is:
int a = 1, b = a;
defined behavior? that is, if a is initialized properly, b is guaranteed to equal a provided that a is initialized before b, but not as a separate statement delimited by a ';', but delimited by a comma like the example above?
I just want to make sure that I'm not walking in undefined-behavior territory here...
Thx.
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
|