Hi Brian Wood,
You said :
BW> Can someone help me understand why different compilers treat this
BW> code differently? Specifically Borland(3.0-4.52) -vs-
BW> Microsoft(8.00)
BW> cout << "The value of /a is " << (char)'/a' << endl;
BW> Borland will send a backslash. Microsoft, the letter a.
Borland compilers does not support multi-character, character constants so
it just evalutes to first character.. It is perfectly normal that borland
sends a backslash.. I don't know the case with microsoft compilers but I
guess the difference is related with this multi character thing..
Berk
... I shot the Moderator. I AM the SysOp, didn't shoot myself.
--- GoldED/386 2.50.A0715 UNREG
---------------
* Origin: void BBS where nothing but (2:431/327)
|