fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char str[100]="hakavsjscshssbv";
  6. int i=0,num=0;
  7. while(str[i]!='\0')
  8. {
  9. i++;
  10. num++;
  11. }
  12. printf("%d",num);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
15