Well i was just wondering how to create a string reverse function as there is a include file 'string.h' which contains the strrev function.Just for knowledge sake i want to know how actually string gets reversed. Any ideas?
You can run a counter 'i' from first character to half the length of the string. Just keep swapping the values of S[i] & S[ L- i - 1 ], where L is length of string.