On 03 Apr 2007 07:17:12 -0700, Tamas Marki <[EMAIL PROTECTED]> wrote:
> On 03 Apr 2007 07:09:15 -0700, praveen kumar <[EMAIL PROTECTED]> wrote:
> > hi,
> > Can u plz help me with some programs tat run in 'C' compiler but not in
> > 'C++' compiler.
>
> Well this seems like a homework question, but here's a hint:
>
> #include <stdio.h>
>
> int main (void)
> {
> int new = 3;
> printf ("new == %d", new);
> return 0;
> }
>
> If you get the idea then you can make up your own C-only programs from this.
If you want something that will compile in both, but give different
results use something relying on
sizeof('a')
You may want to spend some time reading
http://david.tribble.com/text/cdiffs.htm for some other ideas.
--
PJH
Aio, quantitas magna frumentorum est