Differentiate between an external iterator and an internal iterator?
No Answer is Posted For this Question
Be the First to Post Answer
Differentiate between a pointer and a reference with respect to c++.
Is there any problem with the following: char *a=NULL; char& p = *a;?
Comment on assignment operator in c++.
How java is different from c and c++?
Difference between strdup and strcpy?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
Can we sort map in c++?
Explain class invariant.
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
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 is problem with overriding functions?