Sizeof.c
上传用户:dq031136
上传日期:2022-08-08
资源大小:802k
文件大小:0k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. #include <stdio.h>
  2. void main(void)
  3.  {
  4.    printf("Variables of type int use %d bytesn", sizeof(int));
  5.    printf("Variables of type float use %d bytesn", sizeof(float));
  6.    printf("Variables of type double use %d bytesn", sizeof(double));
  7.    printf("Variables of type unsigned use %d bytesn", sizeof(unsigned));
  8.    printf("Variables of type long use %d bytesn", sizeof(long));
  9.  }