Can you declare an array without a size in c++?



Can you declare an array without a size in c++?..

Answer / Naveen Kumar

"No, C++ does not allow declaring arrays without a specified size at compile time. However, C++ supports dynamic arrays that can be resized during runtime using vectors and other dynamic memory allocation methods."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1 Answers  


What is meant by entry controlled loop?

1 Answers   Agilent, ZS Associates,


Why we use #include conio h in c++?

1 Answers  


What is the use of class in c++?

1 Answers  


What is capacity in vector in c++?

1 Answers  


what are the iterator and generic algorithms.

1 Answers  


What is c++ namespace?

1 Answers  


Is java easier than c++?

1 Answers  


What is the difference between stack and heap memory?

1 Answers  


What is the use of cmath in c++?

1 Answers  


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 is the difference between a baller and a reference in C++?

1 Answers  


Categories