$ 0 0 int j=0; char buf[100]; scanf("%s", buf); while(buf[j]!='\0') { j++; } for example let's give input "we are". Why j=2? It should terminated after secound word