Programming and IT Research Center (ج البرمجة وتكنولوجيا المعلومات مركز الأبحاث)
widgets
Sunday, May 5, 2013
String:Reverse string
Write a program in c which will reverse a string
#include <stdio.h>
#include <string.h>
int main()
{
char
rose
[100];
printf("Enter a string to reverse\n");
gets(
ros
e
);
strrev(
rose
);
printf("
After r
everse the string is \n%s\n",
rose
);
return 0;
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)