I am looking for example that prove dynamic memory will be useful instead of static memory. Dynamic memory is allocated at run time where as static is allocated at compile time.
I found example for both type of memory but that doesn't explain difference and doesn't give idea how dynamic memory is useful instead of static memory.?