Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include "point.h"
  2. void point_fill(int * pon)
  3. {
  4. int i =0;
  5. for(i=0;i<10;i++)
  6. {
  7. if(i!=9)
  8. {
  9. *pon=rand()%91+10;
  10.  
  11. }
  12. else
  13. {
  14. *pon=EOF;
  15. }
  16. pon++;
  17. }
  18. }
  19. void point_output(int *pon)
  20. {
  21. while(*pon!=EOF)
  22. {
  23. printf("pointer %p\n inhalt = %i\n",pon,*pon);
  24. pon++;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement