How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
5 14494Explain the ISA and HASA class relationships. How would you implement each in a class design?
3 13232
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
Differentiate between a template class and class template in c++?
What are proxy objects in c++?
What are c++ manipulators?
How do you decide which integer type to use?
What is an iterator class in c++?
Define friend function.
What is the use of structure in c++?
What is near, far and huge pointers? How many bytes are occupied by them?
Why do we use vector in c++?
How do you remove an element from a set in c++?
What are references in c++? What is a local reference?
what are the iterator and generic algorithms.
What is an arraylist c++?
Define namespace in c++?
What is dev c++ used for?