KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I see that people often write C code such as: char *ptr = malloc(sizeof(char)*256); Is that really necessary? The standard says that sizeof(char)==1 by definition, so doesn't it make sense just to write: char *ptr = malloc(256);
Tags (comma-separated)
Save Edits
Cancel