//String handling in C
#include<stdio.h>
#include<conio.h>
#include<string.h>
void
main()
{
char
a[100];
int
n;
clrscr();
puts("\nEnter
ur name\n");
gets(a);
puts("\nyour
name is\n");
puts(a);
n=strlen(a);
printf("\nThe
length of the string is=%d",n);
printf("\n\nString
in Upper Case is=%s",strupr(a));
printf("\n\nString
in Lower Case is=%s",strlwr(a));
printf("\n\nString
in Reverse Order=%s",strrev(a));
getch();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.