Distinguish between static array and dynamic array
Answers
Answered by
0
Static arrays are allocated memory at compile time and the memory is allocated on the stack. Whereas, the dynamic arrays are allocated memory at the runtime and the memory is allocated from heap. int arr[] = { 1, 3, 4 }; // static integer array. int* arr = new int[3]; // dynamic integer array.
hope it helps,
plz mark as the brainliest :)
hope it helps,
plz mark as the brainliest :)
Similar questions