C
cbowler
struct S {
int i;
};
int main() {
S myS;
myS.i; // is this a variable according to spec?
return 0;
}
int i;
};
int main() {
S myS;
myS.i; // is this a variable according to spec?
return 0;
}
struct S {
int i;
};
int main() {
S myS;
myS.i; // is this a variable according to spec?
cbowler said:struct S {
int i;
};
int main() {
S myS;
myS.i; // is this a variable according to spec?
return 0;
}
33 = myS.ig++ -Wall -ansi -pedantic -o main main.cc
./main
struct S {cat main.cc
33 = S.ig++ -Wall -ansi -pedantic -o main main.cc
./main
Victor Bazarov said:It is an expression of type int& (a reference to int).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.