(1)
#include<stdio.h>
int main(void){
int a;
char b;
float c;
double d;
printf("sizeof(a) = %d, 크기는 %d \n",sizeof(a),sizeof(int));
printf("sizeof(b) = %d, 크기는 %d \n ",sizeof(b),sizeof(char));
printf("sizeof(c) = %d, 크기는 %d \n",sizeof(c),sizeof(float));
printf("sizeof(d) = %d, 크기는 %d \n ",sizeof(d),sizeof(double));
return 0;
}
결과
sizeof(a) = 4, 크기는 4
sizeof(b) = 1, 크기는 1
sizeof(c) = 8, 크기는 8
sizeof(d) = 4, 크기는 4
맞는건지 모르겟어요..ㅠㅠ
결과
(2)
return,continue,double,int,long,short,void,static,char,else,if,switch,for etc.....
(3)
seed를 지정하여, 난수를 생성하는것!