Come-on machang... Don't 'just' ask.....
Check the Logic
#include <stdio.h>
# include <string.h>
main()
{
int i,m,n,count;
char str[10],rev_str[10];
// Oh didn't see this earlier. So you're creating an array of size 10. Then again use the below 1st for loop to check the size......
//...