A little bit of C fun...

John Carter john.carter@tait.co.nz
Wed Oct 22 04:45:00 GMT 2008


I'm having a little fun going around hurting peoples brains...

Consider for a moment this program excerpt...
   a(&(b){c})

Is this valid C++?

Is this valid C?

What would you need to do to get this to compile?

What does it do?

Could it be tweaked into something useful? (apart from using it to
hurt people's brains with.)



John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter@tait.co.nz
New Zealand



More information about the Gcc-help mailing list