CodeSarang.Com
Home | All categories Join | Login | 검색   

 

sizeof : 구조체 크기 얻기

등록자 : cpueblo (유광희), 2008-10-13
글수정 | 글삭제


sizeof 를 이용하여 구조체 크기를 얻는 방법

#include <stdio.h> struct _MY_STRUCT { int i; } MyStruct; int main() { printf("struct size = %d\n", sizeof(_MY_STRUCT); }



글수정 | 글삭제
http://codesarang.com. mail to cpueblocpueblo.com