Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Just a small suggestion. You need not cast the result of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Here's a good post for further reading : clickclick
Just a small suggestion. You need not cast the result of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Just a small suggestion. You need not cast the result of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Just a small suggestion. You need not cast the return typeresult of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Just a small suggestion. You need not cast the return type of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Just a small suggestion. You need not cast the result of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.
Just a small suggestion. You need not cast the return type of malloc. This is because malloc returns the type void* which is automatically converted to the pointer its getting assigned to.