Advertisement
shawonrog

02(length of string)

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