Reverse String in C Standart Libs.
char* reversePointer(char *array);| Parameter | Type | Description |
|---|---|---|
array |
char* |
Input and Output Array |
char* reverseArray(char *array);| Parameter | Type | Description |
|---|---|---|
array |
char* |
Input and Output Array |
#include "stringReverse.h"
int main(int argc, const char **argv)
{
(void)argc;
(void)argv;
char array[] = "Reverse Me";
printf("Input - > %s\n",array);
reversePointer(array);
printf("Reverse with Pointer - > %s\n",array);
reverseArray(array);
printf("Reverse with Array - > %s\n",array);
return EXIT_SUCCESS;
}Clone Project
git clone https://github.com/seff34/String-Reverser