Dynamic Array Size

M

Manoj Jangid

Hi to all,

Is there any way to define array size dynamically in C without using
malloc or calloc ?

Kind Regards

Manoj
 
V

vippstar

Hi to all,

Is there any way to define array size dynamically in C without using
malloc or calloc ?
You can also use realloc(NULL, n); or a variable length array (C99
only)
 
M

Manoj Jangid

Hi to all,

Is there any way to define array size dynamically in C without using
malloc or calloc ?

Kind Regards

Manoj

sorry I mean without using any memory allocation

Kind Regards

Manoj Jangid
 
S

santosh

Manoj said:
sorry I mean without using any memory allocation

Kind Regards

How can you "allocate" something without doing any "allocation"? What
are trying to do? If you can describe the actual problem you are trying
to solve, then it may be that it is possible to solve without jumping
through hoops.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top