When is malloc necessary in C?

Viewed 10307

I think all malloc(sizeof(structure)) can be replaced this way:

char[sizeof(structure)]

Then when is malloc necessary?

8 Answers
Related