+ 3

What is the differencr between static and dynamic array in c++?

12th Feb 2018, 10:21 AM
saksham kumar sharma
saksham kumar sharma - avatar
2 ответов
+ 5
Static: You initialise it with a specified size and you can never change it. Dynamic: The size is variable, so you can just keep appending elements until you run out of memory
12th Feb 2018, 10:37 AM
Chris
Chris - avatar