HandlingMemoryAllocation/varray.c
// function to add new element to array in run time 
function to add new element to array in run time
function to add new element to array in run time
void add(int m)
{
    if(size <= count) {
        size += delta;
        arr = realloc(arr,size);
    }
    arr[count++] = m;
}
void add ( int m ) { if ( size <= count ) { size += delta ; arr = realloc ( arr , size ) ; } arr [ count ++ ] = m ; }
function to add new element to array in run time
function to add new element to array in run time
// printf("element added ! \n");