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

Post New Answer

More C++ General Interview Questions

What is the difference between new() and malloc()?

0 Answers  


What is iostream in c++ used for?

0 Answers  


Should you pass exceptions by value or by reference?

0 Answers  


How can you quickly find the number of elements stored in a a) static array b) dynamic array ?

5 Answers   Lucent,


What is the syntax for a for loop?

0 Answers  






What is microsoft c++ redistributable?

0 Answers  


Explain the difference between abstract class and interface in c++?

0 Answers  


How are Structure passing and returning implemented by the compiler?

0 Answers  


What is fixed in c++?

0 Answers  


Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

4 Answers   Microsoft,


What are proxy objects in c++?

0 Answers  


What is Destructor in C++?

0 Answers  


Categories