Advertisement
Munna2790

str04

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