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

How do you test your code?

4 Answers   Microsoft,


Is sorted c++?

0 Answers  


What is purpose of new operator?

0 Answers  


Difference between inline functions and macros?

0 Answers  


What are move semantics?

0 Answers  


Write a C++ Program to check whether a number is prime number or not?

0 Answers   IBS,


What is the function of the keyword ‘volatile’ in C++?

1 Answers  


Explain virtual destructor?

0 Answers  


Can we run c program in turbo c++?

0 Answers  


Is std :: string immutable?

0 Answers  


What is a set in c++?

0 Answers  


What are Binay tress and B trees? Diff between them?

8 Answers   CTS, GATE, Wipro,


Categories