Y
Yuming Ma
all,
// different of x and y
int main()
{
int i=1;
int &r=i;
int x = r;
int y;
y = r + 1;
}
compiled using g++ version 3.1 with "-g" option, trace the code through
gdb and used "info locals", strangely that "x" is not in the context while
"y" is. "print x" showed "No symbol "x" in the current context".
then what is the difference between "x" and "y" here?
thanks
// different of x and y
int main()
{
int i=1;
int &r=i;
int x = r;
int y;
y = r + 1;
}
compiled using g++ version 3.1 with "-g" option, trace the code through
gdb and used "info locals", strangely that "x" is not in the context while
"y" is. "print x" showed "No symbol "x" in the current context".
then what is the difference between "x" and "y" here?
thanks