unsigned long long int
printf, scanf 예제코드) - %llu를 사용한다.
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int
main ( void )
{
unsigned long long int ull;
printf ( "ULLONG_MAX: %llu\n", ULONG_LONG_MAX );
printf ( "Enter an ull value: " );
scanf ( "%llu", &ull );
printf ( "\nThe ull value is: " );
printf ( "%llu", ull );
return EXIT_SUCCESS;
}
숫자 상수(literal)로 기술할 때 : 숫자LL (숫자 뒤에 L을 2개 붙인다.)
unsigned long long int 는 %llu
long long int는 %lld
http://groups.google.co.kr/groups?q=unsigned+long+long+int&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&selm=bp65ek%24a8%241%40newshispeed.ch&rnum=19
http://groups.google.co.kr/groups?q=unsigned+long+long+int&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&selm=c5ponf%24eeq%241%40news-reader3.wanadoo.fr&rnum=20
댓글 없음:
댓글 쓰기