First how do you use Dynamic and Static Memory Allocation?

and why is supposed to be so popular in use?

char a[256]; // Static allocation
char *p = new char[256]; // Dynamic allocation

>and why is supposed to be so popular in use?
You aren't restricted to a "one size fits all" strategy, and you can generally grab more memory from the dynamic pool than from the "stack".

^^^

i am really starting to like you :)

thanx again

This is fucking LOLs

commented: Not necessary -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.