fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int *b[5],b2;
  5. for(int i=0;i<5;i++)
  6. {
  7. scanf("%d",&b[i]);
  8. printf("%d番目のデータ:%d\n",i+1,b[i]);
  9. }
  10. b2=sizeof(b)/sizeof(b[0]);
  11. printf("%d",b2);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5392KB
stdin
1111111111111111111111111111111111111111111111111111111111111111111111111
2222222222222222222222222222222222222222222222222222222222222222233

333333333333333333333333333333333333333333333333333333
444444444444444444444444
5

6
67
888888888
9999999999999
stdout
1番目のデータ:-1
2番目のデータ:-1
3番目のデータ:-1
4番目のデータ:-1
5番目のデータ:5
5