I have 2 variables: char x[100]
and char c;
At first, I needed to store c
within x
. I did this:
x[0] = c;
Within my program, after the one previously executed, the c
variable changes value. So I need to concatenate the value of c
next to x
that has already been filled. I tried to do this:
x[strlen(x +1)] = c;
But it did not work.
Using StrCat does not solve.