Is it true that every array that is initialized during runtime is dynamic and every array that is initialized during compiling is static?
for example:
Memory is not allocated at the time of declaration.
declaration
eg: int array[100]; ; -- won't compiles
int array[100];
compiles
its only when new operator is encountered memory is allocated.
new
memory
So
array = new int[100]; ; compiles.
array = new int[100];