why can't we declare data member of class auto register or
extern
Answer / kavitha shetty
since data members gets memory allocated through object not
individual..so always memory allocated for object...
otherwise u might get error like illegal storage class
| Is This Answer Correct ? | 5 Yes | 0 No |
What's c++ used for?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What is the difference between C and CPP?
What are exceptions c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What are the differences between public, private, and protected access?
12 Answers IBM, Oracle, Wipro,
what is Member Functions in Classes?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What is the best c++ ide?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
How is static data member similar to a global variable?