How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
5 14743Explain the ISA and HASA class relationships. How would you implement each in a class design?
3 13420
1. What does the following do:
void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<
Post New C++ General Questions
What is the importance of mutable keyword?
What is the use of namespace std in C++?
Why do we use string in c++?
Do you know about C++ 11 standard?
Why do we learn c++?
Define stacks. Provide an example where they are useful.
When should I use unitbuf flag?
What is the difference between #define debug 0 and #undef debug?
What is null and void pointer?
What is a storage class? Mention the storage classes in c++.
Do inline functions improve performance?
What are smart pointers?
When must you use a pointer rather than a reference?
What are the two main components of c++?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL