Sayfalar

Menü

11 Haziran 2020 Perşembe

C programlama sizeof kullanımı

C programlama sizeof kullanimi veri tiplerin hafizada kapladigi byte alani

#include<stdio.h>
main()
{
int a=35;
printf("sizeof a deger:%d\n",sizeof(a));
printf("sizeof int deger:%d\n",sizeof(int));
printf("sizeof char deger:%d\n",sizeof(char));
printf("sizeof float deger:%d\n",sizeof(float));
printf("sizeof double deger:%d\n",sizeof(double));
printf("sizeof unsigned char deger:%d\n",sizeof(unsigned char));
printf("sizeof short deger:%d\n",sizeof(short));
printf("sizeof unsigned short deger:%d\n",sizeof(unsigned short));
printf("sizeof long deger:%d\n",sizeof(long));
printf("sizeof unsigned long deger:%d\n",sizeof(unsigned long));
printf("sizeof double deger:%d\n",sizeof(long double));

return 0;
}



Hiç yorum yok:

Yorum Gönder

Her yorum bilgidir. Araştırmaya devam...