can you help me have this code a variable/subject to change. you're the one who will input a string and output the sorted word like..
Enter some string:
one
two
three
yes... how can i do that .. that code is running but it only display the first word.. for example i input the word : one two three and then it would only output the word "one"
but if I changed this char buf[50]; to char buf[50]= one two three
it would output the correct answer "three two one"