KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When shall i use malloc instead of normal array definition in C? I can't understand the difference between: int a[3]={1,2,3} int array[sizeof(a)/sizeof(int)] and: array=(int *)malloc(sizeof(int)*sizeof(a));
Tags (comma-separated)
Save Edits
Cancel