I wrote this function to reverse a string in C, but when switching characters in the string the program crashes. I have no idea what\'s causing it, so any help would be apprecia
This should work:
#include int main() { char str[100], temp = 0; int i = 0, j = 0; printf("nEnter the string :"); gets(str); i = 0; j = strlen(str)-1; while(i