During code, I've found remarkable problem.
In my code, i just print same object using format string. but result is not same.
By my insight, i thought result is 97 97 97
. but outcome is 97 98 99
What happened to them? i can not understand that situation.
Could you explain this?
class A
{
public:
int a;
int b;
int c;
A(){
this->a=97;
this->b=98;
this->c = 99;
};
};
int main(int argc, char **argv){
A a;
printf("%d %d %d\n", a, a, a);
return 0;
}