Hello, I have not been programming for very long at all, I've been working my way through a book, reading stuff online and making some simple programs. I recently learned about malloc and I understand how to use it and why it is useful but some of the syntax has left me confused. Here is a line from a malloc() example program:
What does (int *) do here, what does it mean? I have seen it used in several examples of malloc.Code:ptr_one = (int *)malloc(sizeof(int));
Thank you



1Likes
LinkBack URL
About LinkBacks


