Skip to content

seff34/String-Reverser-In-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Reverse String in C

Reverse String in C Standart Libs.

API Functions

Reverse String with Pointer

char* reversePointer(char *array);
Parameter Type Description
array char* Input and Output Array

Reverse String with Index of Array

char* reverseArray(char *array);
Parameter Type Description
array char* Input and Output Array

Example Code

#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;
}

Download Code

Clone Project

  git clone https://github.com/seff34/String-Reverser

Releases

No releases published

Packages

No packages published

Languages