Advertisement
shawonrog

p1

Apr 11th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. int main()
  2. {
  3.     char Str[1000];
  4.     int i;
  5.  
  6.     printf("Enter the String: ");
  7.     gets(Str);
  8.  
  9.     for (i = 0; Str[i] != '\0'; i++);
  10.  
  11.     printf("Length of the String is : %d\n", i);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement