#include
int main(void)
{
int i,j;
int wordstart = -1;
int wordend = -1;
char words[]= \"this is a test\";
char temp;
// Reverse each word
Use a main for loop to traverse till the end of the sentence:
Copy the letters in a string until you find a space.
now call add@beginning
function and in that function add the string each time you pass a string to the linked list.
print the contents of the linked list with a space inbetween to get the expected output