Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fajlovi 3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <stdio.h>
- int main()
- {
- int brojevi[50];
- FILE *f = fopen("podaci.bin", "wb");
- int i;
- for (i = 0; i < 5; i++)
- scanf("%d", &brojevi[i]);
- fwrite(brojevi, sizeof(brojevi), 5, f);
- fclose(f);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement