Created
February 5, 2014 09:23
-
-
Save kkdai/8819946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo_class | |
{ | |
foo_class() | |
private: | |
int a=0; | |
public: | |
int b=0, | |
void foo_fun1(); | |
} | |
void foo_fun1():a(2),b(3) | |
{ | |
// What is a, what is b? | |
a=b; | |
//waht is a, what is b? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer is a, b default value is foo_fun1 is not define the priority.
So, don't write code like this, because every compiler has different result.