반응형
#include  
int main() 
{ 
  int a=1247483647; 
  unsigned int b=4294967295; 
  long long c=9223372036854775807; 
  unsigned long long d=18446744073709551615; 
  float e=0.12345678912345f; 
  double f=0.12334678912345; 

  printf("%d\n",a); 
  printf("%ud\n",b); 
  printf("%lld\n",c); 
  printf("%llu\n",d); 
  printf("%.15f\n",e); 
  printf("%.15f\n",f); 
}
반응형

'2019~2020 > 정보 과학' 카테고리의 다른 글

양수 만들기  (0) 2019.04.10
scanf() 함수로 문자 읽기1  (0) 2019.03.29
비트 연산자 실습  (0) 2019.03.27
관계연산자 , 논리연산자  (0) 2019.03.22
산술 연산자  (0) 2019.03.22

+ Recent posts