What is one dimensional array in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are virtual functions in c++?

0 Answers  


Difference between const char* p and char const* p?

1 Answers  


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

0 Answers   Yahoo,


What is anonymous object in c++?

0 Answers  


What is the use of main function in c++?

0 Answers  






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

2 Answers   Quark,


What you know about structures in C++?

0 Answers   Agilent, ZS Associates,


Types of storage and scope of each type

2 Answers   CA,


what does the following statement mean? int (*a)[4]

0 Answers  


Can create new c++ operators?

0 Answers  


What is the iunknown interface?

0 Answers  


What is the difference between an array and a list?

0 Answers  


Categories