Re: Any solution ??

From: chahnaz.ouzikene (chahnaz.ouzikene_at_wanadoo.fr)
Date: 11/05/04


Date: Fri, 5 Nov 2004 16:25:23 +0100


"Francis Glassborow" <francis@robinton.demon.co.uk> a écrit dans le message
de news: 9f7gppGGb4hBFwRB@robinton.demon.co.uk...
> In article <77c88a3b.0411020411.1777143@posting.google.com>, ranjeet
> <ranjeet.gupta@gmail.com> writes
> And here is one that usually does different things in C and C++
>
> int main(){
> sizeof('a') > 1 ?
> puts("This was compiled as C\n"):
> puts("This was compiled as C++\n");
> return 0;
> }

Hi All,

How come ? are chars stored in 2 bytes in C++ ???? or is sizeof working
differently ??

I'm a bit confused...