fwrite写入int结果为5个字节,该怎么解决

fwrite写入int结果为5个字节32位xp平台,源码如下:#include stdio.hint main(){FILE *file fopen(E:/t

fwrite写入int结果为5个字节
32位xp平台,源码如下: 
#include "stdio.h"
int main()
{
  FILE *file = fopen("E:/test.dat", "w+");
  int a = 2583;
  fwrite(&a, sizeof(int), 1, file);
  fclose(file);
  return 0;
}
用gcc编译,执行后用UE查看值为:17 0D 0A 00 00。为什么多出一个字节?

[解决办法]
http://www.cnblogs.com/guyan/archive/2012/01/19/2327330.html 文本打开和二进制打开的区别
[解决办法]

C/C++ code
FILE *file = fopen("E:/test.dat", "w[color=#FF0000]b[/color]+");