menu search
brightness_auto

Recent questions tagged malloc

if i want to copy the string best school into a new space in memory what are the options of statements i can use to reserve enough space for it
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
Do I cast the result of malloc? In this question, someone suggested in a comment that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(*sieve) * length); rather than: int *sieve = (int *) malloc(sizeof(*sieve) * length); Why would this be the case?
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
0 answers
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

702 questions

631 answers

25 comments

2.5k users

...