संभव डुप्लिकेट:
Why are C character literals ints instead of chars?क्यों आकार ('ए') सी में 4 है?
#include<stdio.h>
int main(void)
{
char b = 'c';
printf("here size is %zu\n",sizeof('a'));
printf("here size is %zu",sizeof(b));
}
यहाँ
निर्गम (लाइव डेमो here देखें।) है
here size is 4
here size is 1
मैं नहीं मिल रहा है क्यों sizeof('a')
4 है?
देखें के बराबर है [क्यों वर्ण के बजाय सी चरित्र शाब्दिक ints कर रहे हैं?] (Http://stackoverflow.com/questions/433895/why-are-c- चरित्र-शाब्दिक-ints-बजाय के- वर्ण) –