topical media & game development
professional-program-12-Scope-GlobalScope.c
? /
professional-program-12-Scope-GlobalScope.c
include <iostream>
using namespace std;
int name = 3;
int main(int argc, char** argv)
{
int name = 4;
cout << name << endl; // accesses local name
cout << ::name << endl; // accesses global name
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.