首页 | 本学科首页   官方微博 | 高级检索  
     检索      

解析C语言中的sizeof
引用本文:苏秋萍.解析C语言中的sizeof[J].陕西教育学院学报,2006,22(4):74-76.
作者姓名:苏秋萍
作者单位:陕西教育学院计算机系,陕西西安,710061
摘    要:sizeof是C语言的一种单目运算符,它以字节形式给出了相应操作数所占存储空间的大小。从提高程序的可移植性、通用性以及延长软件的生命周期等方面考虑,软件开发时,程序中对一种数据类型所占空间大小不应做任何假定,而应通过sizeof运算符获得。

关 键 词:C语言  sizeof运算符  数据类型
文章编号:1008-598X(2006)04-0074-03
收稿时间:10 8 2006 12:00AM
修稿时间:2006年10月8日

Size of in the C Programming Language
SU Qiu-ping.Size of in the C Programming Language[J].Journal of Shaanxi Institute of Education,2006,22(4):74-76.
Authors:SU Qiu-ping
Abstract:Sizeof is one kind of monocular operators in C programming language.It produces the size of the storage space to the corresponding operand by the byte form.Considering the probability the versatility of software aspect and so on,when software is developed,in the procedure the spatial size of one kind of data type should be obtained through the sizeof operator.This article has made the detailed narration to the sizeof operator in order to give some help to the readers.
Keywords:C language  sizeof operator  data type
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号