About the Capstone Projects category

Welcome to the Capstone Projects subcategory! Share your projects here, give feedback, and ask for feedback.

// I am facing problem of an error which shows expected expression in c LA’nguage in code that u see below
This code for reverse an string of each words

//reverse individual words
#include <stdio.h>
int main()
{
int I,n;
char str[n];
printf(“how long u create array”);
scanf("%d",&n);
printf(“enter an string”);
for(I=0;I<n;I++)
scanf("%s",str[I]);
reverse_word(str);
printf(“your string in reverse”);
for(I=0;I<n;I++)
printf("%s",str);
return 0;
}
//function which used for reverse each word

void reverse(int arr,int start,int end)
{
while(start<end)
{
int temp=arr[start];
arr[start++]=arr[end];
arr[end–]=temp;
}
}
//function which I used for reverse whole string
void reverse_words(char str)
{
int I,wstart=0;
int Len=length(str);
for(I=0;I<Len;I++)
{
if(str[I]==’ ')
{
reverse(str,wstart,I-1);
wstart=I+1;
}
}
reverse(str,wstart,Len-1);
}

Hello everyone.,
I did it at last Colma Academy project after so many hours. I made it responsive. It is not at all perfect but I am proud of myself. Feedbacks are very much appriciated. This is my very first capstone project. Thanks in advance.
Nirmalie
see live at: https://nirmalieo3.github.io/ColmaAcademy/

see the code at: https://github.com/nirmalieo3/ColmaAcademy