-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David G. Hong wrote:
#include<stdio.h>
int main()
{
char a=97;
You have assigned a decimal value of 97 to char variable 'a'. This
infact is legal in C
True so far.
as characters use ascii conversion.
Untrue.
The C standard -does not_ specify which characterset is used, and standard C has
been implemented in other charactersets other than ASCII.
On the platforms that I use,
char a=97;
assigns the variable a the value associated with the SOLIDUS ('/') character.
Needless to say, the characterset is _not_ ASCII.
[snip]
- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFDQSxoagVFX4UWr64RAilkAJ9JbGQrOAzGt2JhdU6mMz f0WMeeQQCfU2T6
p3reCWQNcscJ1atN1kKGqkw=
=7X04
-----END PGP SIGNATURE-----