How do I combine multiple strings. For example,
char item[32]; scanf(\"%s\", item); printf(\"Shopping list: %s\\n\", item); //I want to combine this string
You can use sprintf:
sprintf
char combinedstring[100]; sprintf(combinedstring,"%s %s %s",item,string_2,hw);
You can also look up the string.h header and its functions.
string.h