Creating dynamic memory by setting the size of the data type for which we are requesting memory. - C Memory

C examples for Memory:malloc

Description

Creating dynamic memory by setting the size of the data type for which we are requesting memory.

Demo Code

#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;
}

Related Tutorials