Read OnLine C- Program Example

09_STRING
PRAC 7  
//strrev() function in c
//It reverse the given string
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char s1[]="Imacc Education";
clrscr();
printf("\n Source String=%s",strrev(s1));
getch();
}
------output------
Source String=noitacudE ccamI

Previous Next
Download