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
Is c++ proprietary?
Why do we use setw in c++?
What are the advantage of using register variables?
Explain how functions are classified in C++ ?
Will rust take over c++?
What are the advantages of using a pointer?
What is a flag in c++?
Why was c++ created?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };
What are features of c++?
What is the difference between Pointer and a Reference? When you would use them?