Uses of Strlen, Strupr, Strlwr, Strrev

#include "stdio.h"
int main (void)
{
    char name[100];    printf("Please enter your name\n");
    scanf("%s", &name);
    printf("length is %d\n", strlen(name));
    printf("Upper is %s\n", strupr(name));
    printf("lower is %s\n", strlwr(name));
    printf("Reverse is %s\n", strrev(name));
    system("pause");
    return 0;
}
   

0 comments:

Post a Comment