form ISO Standard Draft
n3234 says:
Two names are the same if
— they are identifier s composed of the same character sequence, or
According to this meaning..Check whether this is correct or not
class ABC{};
class abc{};
int ABC(){}
int abc(){}
int main(){
int abc;
char ABC;
}
is this program is correct according to the above statement?
is this program is APT to this statement?(what that statement meaning represents)
Finally ..explain any other thing ..is i left?
From ISO/IEC 14882:2003(E) 9.1.2 –
[Example:
—end example]
3.3.7 Name hiding
With the quotes from the standards, all these statements are correct.
Both the functions
ABC(), abc()are supposed to returnint, which they are not doing though 🙂