Advertisement
Patresss

Untitled

Sep 2nd, 2014
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void zapisz(float tab[])
  4. {
  5.     FILE *plik_b=fopen("plik.bin","wb");
  6.     fwrite(tab,5,sizeof(float),plik_b);
  7.     fread(tab,5,sizeof(float),plik_b);
  8.  
  9. }
  10.  
  11. int main(void){
  12. float tab[5]={1.0,2.0,3.2,4.4,5.5};
  13. zapisz(tab);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement