sososo

#include <stdio.h>


int main()
{
	int i;
	char j;
	float k;
	i=123;
	j='C';
	k=3.14;
printf("size of int is %d\n",sizeof(int));
printf("size of i is %d\n",sizeof(i));
printf("size of char is %d\n ",sizeof(char));
printf("size of j is %d\n",sizeof j);
printf("size of float is %d\n",sizeof(float));
printf("size of k is %d\n",sizeof k);

	 
        return 0;
}
#include<stdio.h>
int main()
{
	printf("int=%d\n",sizeof(int));
	printf("short int =%d\n",sizeof(short));
	printf("long int=%d\n",sizeof(long));
	printf("long long int=%d\n",sizeof(long long));
	printf("char =%d\n",sizeof(char));
	printf("_Bool=%d\n",sizeof(_Bool));
	printf("float=%d\n",sizeof(float));
	printf("double =%d\n",sizeof(double));
	printf("long double =%d\n",sizeof(long double));
	return 0;
	
}

上一篇:noip模拟60(待补)


下一篇:sizeof和strlen的区别