


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Today’s Agenda
Compile Time Allocation
Dynamic Memory Allocation
Pointers
void *ptr ;
Cast
( int * ) ptr ;
( int * ) calloc ( 1000 , sizeof ( int ) ) ;
Example 1 int *iPtr ; iPtr = ( int * ) calloc ( 1000 , sizeof ( int ) ) ; if ( iPtr == NULL ) exit ( ) ;
void * malloc ( n ) ;