Question: C language Problem is to write a program to reverse each word in the sentence. The max length of the string is 100 characters. For

C language
Problem is to write a program to reverse each word in the sentence. The max length of the string is 100 characters.
For example:
input : dlrow olleh?
output: world hello?
But in my problem, there's something wrong which i couldn't find. It compiles just for once, and stop.
C language Problem is to write a program to reverse each word

1 #include 2 #include 3 4 int main() 5 { 6 char array[100], a; 7 int i, j=0; 8 19 for(i=0; i=0 ; j--) 16 17 printf("%c", array[j]); 18 } 19 j=0; printf(" "); 21 22 23 else 24 25 array[j] = a; 26 j++; } 28 29 return 0; 30 31 UAWN OOOUA 20 27

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!