How do I do to add a word (for example: car) the variable X[100] in the middle of the program?
X='car'
wont work :S
Thanks a lot,
I made it work with
char x[20]
(...)
strcpy(x,"car");
:D
Also take a look at strcat().
;-)
Look at strcat() strcpy()
;)
IMO. snprintf() or strncpy() is the better one to use. strcpy() and strcat() is leaving yourself open to buffer overflows.