C examples for Memory:malloc
Creating dynamic memory by setting the size of the data type for which we are requesting memory.
#include <stdio.h> #include <stdlib.h> int main() { //from w w w . j ava 2 s. com char *name; name = (char *) malloc(80 * sizeof(char)); return 0; }