How to reverse a C string

In this example is a simple function which reverses a C-string. From theory we know that a C string is a char array with the special termination character '\0' in the end of actual string. Basically, the actual string residing in the char array should be at maximum the length of the array minus one (which will be used by the termination character). For example char array[10]; Position : 0 - 1...