What are the four partitions in which c++ compiler divides the ram?
No Answer is Posted For this Question
Be the First to Post Answer
What are raw sockets, where they are efficient?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
How do you know that your class needs a virtual destructor?
How is c++ used in the real world?
What will happen if when say delete this ?
Is c++ faster than c?
Why did you leave your last job?
What is the use of register keyword with the variables?
What is c++ prototype?
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 are inline functions? What is the syntax for defining an inline function?
How to access a variable of the structure?