dynamic memory allocation in C

Posted by avanish on Stack Overflow See other posts from Stack Overflow or by avanish
Published on 2010-04-03T16:57:15Z Indexed on 2010/04/03 17:03 UTC
Read the original article Hit count: 398

Filed under:
|

int main()

{

int p;

scanf("%d",&p);

fun()

{

int arr[p]; //isn't this similar to dynamic memory allocation??

}

}

//if not then what other objective is achieved using malloc and calloc??

//Someone please throw some light :-)

© Stack Overflow or respective owner

Related posts about dynamic

Related posts about memory-allocation