fork(1) download
  1. #include<stdio.h>
  2. main()
  3. {
  4. int arr[100];
  5. int i;
  6. printf("enteer");
  7. int *ptr;
  8. ptr=&arr;
  9. for(i=0;i<100;i++)
  10. {
  11. scanf("%d",ptr[i]);
  12. }
  13. int l=0;
  14. while((*ptr)!='/0')
  15. {
  16. ptr++;
  17. l++;
  18. }
  19. printf("%d",l);
  20. }
Runtime error #stdin #stdout 0.01s 1724KB
stdin
Standard input is empty
stdout
Standard output is empty