#include<stdio.h> #include<string.h> int main() { char ch[1000],*p=ch; int i=0; gets(ch); for(;*p!='\0';) { p++; i++; } printf("%d\n",i); }