SyntaxFix
Write A Post
Hire A Developer
Questions
As Paul stated, it's because 'a' is an int in C but a char in C++.
'a'
int
char
I cover that specific difference between C and C++ in something I wrote a few years ago, at: http://david.tribble.com/text/cdiffs.htm