Describe about storage allocation and scope of global, extern, static, local and register variables?
No Answer is Posted For this Question
Be the First to Post Answer
What is a c++ object?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Do you know what are static and dynamic type checking?
What do you mean by enumerated data type?
What is the difference between global variables and static varables?
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
Do inline functions improve performance?
What is atoi in c++?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
What do you mean by ‘void’ return type?
What do you know about friend class and friend function?
What are the advantages of inheritance in c++?