Showing posts with label Coding Of Reverse String. Show all posts
Showing posts with label Coding Of Reverse String. Show all posts

Monday, 29 October 2012

Program Of Reverse String In C++

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
 
main()
 
{
 
clrscr();
 
char x[20];
 
int l;
 
//cout<<"Enter String=";
 
//cin>>x;
 
gets(x);
 
reverse(x);
 
getch();
 
}
 
{
 
int p=0,i;
 
for(i=0;a[i]!='\0';i++)
 
{
 
p++;
 
}
 
{
 
cout<<a[i];
 
}
 
}