fork 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)='/ ')
  15. {
  16. ptr++;
  17. l++;
  18. }
  19. printf("%d",l);
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3: warning: return type defaults to ‘int’
prog.c: In function ‘main’:
prog.c:8: warning: assignment from incompatible pointer type
prog.c:11: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’
prog.c:14:15: warning: multi-character character constant
prog.c:14: error: lvalue required as left operand of assignment
prog.c:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
stdout
Standard output is empty