A Coding Particle
Coming Soon
#include <stdio.h>
#include <string.h>
char *strReverse(char *);
int main()
{
char str[] = "01100110 10100110 00110110 10000110";
printf("%s\n", str);
printf("%s\n", strReverse(str));
return 0;
}
char *strReverse(char *str)
{
int i, j;
for(i = 0, j = strlen(str) - 1; i < j; i++, j--)
(str[i] ^= str[j]), (str[j] ^= str[i]), (str[i] ^= str[j]);
return str;
}
Email: ab.roshan39@gmail.com
Copyright © 2016 rosybit. All rights reserved.