Skip to content

Instantly share code, notes, and snippets.

@btechmag
Last active April 15, 2021 10:34
Show Gist options
  • Save btechmag/2578fdd5f7429b1c7b9b2ae5978ad41b to your computer and use it in GitHub Desktop.
Save btechmag/2578fdd5f7429b1c7b9b2ae5978ad41b to your computer and use it in GitHub Desktop.
Simple C program to reverse the given characters.
#include<stdio.h>
main()
{
char char1='X';
char char2='M';
char char3='L';
printf("\n the reverse of %c%c%c is %c%c%c\n", char1,char2,char3,char3,char2,char1);
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment