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