What are the various storage classes in C++?
No Answer is Posted For this Question
Be the First to Post Answer
Is c++ the hardest programming language?
What is pure virtual function?
How is c++ used in the real world?
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
How size of a class can be calulated?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is else syntax in c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
What would happen on forgetting [], while deallocating an array through new?
Why would you use pointers in c++?
Explain linked list using c++ with an example?