132. Write a program to reverse string using strrev()?

#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
                char str[10];
                clrscr();
                cout<<"Enter The String : ";
                cin>>str;
                cout<<"\nReverse of "<<str;
                cout<<" Is "<<strrev(str);
                getch();
}

132.PNG

Advertisements

Comments are closed.

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: