Reverse String Values Through C++
========================================================================
\#include<iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
main()
{
char array[100];
cout<<"Enter a string to reverse\n";
gets(array);// cin>>array;
strrev(array);
cout<<"Reverse of entered string is\n"<<array;
}
========================================================================
Code By: Kabeer Hussain
0 comments:
Post a Comment