Question: what is the difference between static array and dynamic array in c?
Answer: 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 the heap. ... ... What is the difference between an array of pointers and a pointer to an array using suitable example?