How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
5 14744Explain the ISA and HASA class relationships. How would you implement each in a class design?
3 13422
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
Define a nested class.
What is the purpose of ios::basefield in the following statement?
What are the various oops concepts in c++?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is enum class in c++?
Array base access faster or pointer base access is faster?
How does c++ structure differ from c++ class?
Which c++ operator cannot overload?
What is stoi in c++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
How can you quickly find the number of elements stored in a dynamic array?
How many keywords are used in c++?
What do you mean by public protected and private in c++?
What is main function in c++ with example?
What is #include cstdlib in c++?