CodeSarang.Com
Home | 전체 메뉴 | 질문/답변 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