Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void zapisz(float tab[])
- {
- FILE *plik_b=fopen("plik.bin","wb");
- fwrite(tab,5,sizeof(float),plik_b);
- fread(tab,5,sizeof(float),plik_b);
- }
- int main(void){
- float tab[5]={1.0,2.0,3.2,4.4,5.5};
- zapisz(tab);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement