#include <stdio.h>
#include <string.h>
int main(int argc, const char *argv[])
{
FILE* fp=fopen("./fp.txt","w");
if(NULL==fp)
{
perror("fopen");
return -1;
}
int arr[5]={10,40,55,60,24};
size_t res=0;
res = fwrite(&arr,sizeof(arr),1,fp);
printf("res=%ld\n",res);
return 0;
}