Im trying to dynamically allocated the number of elements to my char array. Whats the best way to do this.. maybe something like this?
int sizeofarray = 10;
char *myarray = malloc(sizeof(char)*sizeofarray);
then i need to access the array normally like myarray = 'g';
am i on the right track?