Hello, I'm trying to write a simple code that gets the word "apples" from the line "apples taste good", I tried using the source below but the source variable ended up returning something like this:
source = apples╠╠╠╠+
as you can see it has that weird ascii at the end.
I am not sure if im using the correct approach for this type of deal, but I'd appreciate any help, thank you.Code:char source[10] strncpy(source,"apples taste good", 7);