Advertisement
sujonshekh

Stiring Upper & Lower Case

Jul 29th, 2016
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<string.h>
  2. int main()
  3. {
  4.     char s[1000], s1, * temp;
  5.     gets(s, s1);
  6.  
  7.     int len = strlen(s);
  8.     printf("Lenght of the string %d\n", len);
  9.  
  10.     temp = strlwr(s);
  11.     printf("Lower cased string %s\n", temp);
  12.  
  13.     temp = strupr(s);
  14.     printf("Upper cased string %s", temp);
  15.  
  16.     temp = strcat(s, s1);
  17.     printf("Concated string:%s", temp);
  18.  
  19.     temp = strncat(s, s1, 2);
  20.     printf("Concated string:%s", temp);
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement