i want to know if it is possible to declare an array of the type
int array[ length ]; where length is a variable.
i don't want to use malloc and calloc as they complicate the program.
i get an error message "Constant Expression Required"
is there any way of making the length constant so that the above statement is valid ??
i need this for a class called Timer
i want to declare it as
Where length is a variable.
is it possible ??
( without using malloc and calloc as far as possible )