How you will initialize static, constant variables in a class,
types of case? diff between dynamic cast and static cast?
what happens between exception throw and catch?
what is auto_ptr and whats the draw back?
Class B is having virtual func1(). Class D is having virtual func1() and func2(). If we do D d; B *b = &d; can we access func2() with b?
diff between operator new and new operator?
whats the diff between primary key and unique key?
what the purpose of index in data bases?
Will it work or not???
================
int func();
void func();
int func();
int func() const;
int funct(int a, float b);
int funct(float a, int b);
int func(int i=0);
int func();
int func(int i);
int func(const int i);
Complete the below function:
-----------------------------
Class Sample
{
int *i;
char *a; // can be assigned to any length string
const int b; // need to initialize with value 10
static int c; // need to initialize with value 20
int int d;
public:
/* fill this part */
};
int main()
{
Sample A("Paypal");
Sample B(A);
Sample C;
Sample D = B;
C = A;
A = A;
A::~A();
cout << A << B << C;
return 1;
}
Given some array of values in range [1..n] with some duplicated in the the array.
For these 3 options how you will approach to print the duplicate values and missing values?
> With more memory less time
> With less memory more time
> with same array edited
Below are same or not? If same why? if not why?
if( p && *p)
cout <<"AND";
if( *p && p )
cout <<"AND1";
Given some valued asked dto construct binary search tree.
then calculate in order and post order for that tree
by hiding the constructed tree, asked to construct the tree with inorder and postorder values.
Sudo algo for palindrom check of a string using linked lists.
diff between vector and list? what is the internal representation of these?
given some array with some random values. How you will find what are duplicated and whats their count? give oprtimized solution.
find command in unix?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment