February 2020
Beginner to intermediate
616 pages
15h 16m
English
This function allocates memory dynamically, that is, during runtime. A block of memory of a given size in bytes is allocated and a pointer pointing to that block is returned. Here is its syntax:
pointer = (data_type*) malloc(size_in_bytes)
This function doesn't initialize the allocated memory, as that memory block initially contains some garbage values.
Read now
Unlock full access