How do I make this piece of code work? I have the dimension of the string at run-time...
void Sub1(int Count) {
char nrstr[Count];
.
.
.
}
or
{
int k;
k = f1();
char nrstr[k];
}
If your answer is dynamic allocation, how do I do that (define vars; add, remove items)?
void Sub1(int Count) {
char nrstr[Count];
.
.
.
}
or
{
int k;
k = f1();
char nrstr[k];
}
If your answer is dynamic allocation, how do I do that (define vars; add, remove items)?