how to allocate dynamic memory to an array when number of element is
unknown in C
How to allocate dynamic memory to an array where size or number of element
is unknown
int *p = (int*)malloc(i*sizeof(int)); here i also dynamic mean i may be 1
or 1000 we don't know so how to allocate size thanks
No comments:
Post a Comment