Advertisement
Guest User

strlen

a guest
Mar 13th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i;
  5.     char a[100];
  6.     gets(a);
  7.     for(i=0;a[i]!='\0';i++);
  8.     printf("%d",i);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement