Which command properly allocates memory
a) char *a=new char[20];
b) char a=new char[20];
c) char a=new char(20.0);
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between global int and static int declaration?
What are the techniques you use for debugging?
In a function declaration what does extern means?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
How long does this loop run: for(int x=0; x=3; x++) a) Never b) Three times c) Forever
17 Answers Datavance, Quark, VEL, Wipro,
What are containers in c++?
What is a storage class in C++
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Brief explaination about #include<iostream.h>, cin and cout
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
Define a nested class. Explain how it can be useful.
what is polymorphism?