Possible Duplicate:
Size of character ('a') in C/C++
#include <stdio.h>
int main()
{
printf("%d" , sizeof('a'));
return 0;
}
#include <iostream>
using namespace std;
int main(){
cout << sizeof('a');
return 0;
}
For C, it gives 4 as answer whereas for C++ it gives 1 ? My question is why the languages interpret the character constant differently ?