Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~138 People Reached
Favorite Forums
Favorite Tags
c x 2
Member Avatar for doom5

I'm teaching myself C, and wrote this string reverse function. I cannot figure out why it is crashing... [code=c]#include <stdio.h> void ReverseString(char *inStr, int length); void ReverseString(char *inStr, int length) { char temp; int j=length; int i=0; while( i != j) { temp = *(inStr+i); *(inStr+i) = *(inStr+j); *(inStr+j) = …

Member Avatar for girishn
1
138