rajneshmalik wrote:
then obviously by default data type of i is auto int
No, it isn't. i is a class member. auto variables have a local lifetime - the lifetime of i is determined by the lifetime of the object it is in. register - same thing. You've only declared i. Until there's an instance of an "a" object, i doesn't exist. How, then, can you give i a storage specifier? extern? Makes NO sense. How can a member of an object be somewhere else - some external location?
Mark Salsbery Microsoft MVP - Visual C++ :java: