#include
int main(void)
{
int i,j;
int wordstart = -1;
int wordend = -1;
char words[]= \"this is a test\";
char temp;
// Reverse each word
#include
#include
#include
int main()
{
char st[50], rst[50];
printf("Enter the sentence...\n");
gets(st);
int len=strlen(st), p;
int j=-1,k;
p=len;
for(int i=(len-1); i>=0; i--)
{
//searching for space or beginning
if(st[i]==' ')
{
//reversing and storing each word except the first word
for(k=i+1;k