how to reverse it?
i had tried
#include <stdio.h>
void main()
{
int i = 30;
int x;
char reverse[31];
char title[31] = "programming concepts and design";
for(x = 0; x >= 0; x++)
{
reverse[x] = title[i];
i--;
}
printf("The reverse order is %s\n", reverse[x]);
}
the result show me is the system error and end of the program immediately.
so what's wrong with the codes, so far i can't detect where im wrong.