This is a feature of GCC (I don't know if it is a part of the standard). Here's the link from the GCC manual: http://gcc.gnu.org/onlinedocs/gcc-4.4.4/gcc/Statement-Exprs.html#Statement-Exprs
On Sat, Sep 11, 2010 at 9:49 PM, mohit verma <mohit89mlnc@xxxxxxxxx> wrote:
thanks a lot manohar ,
but please can u elaborate oni mean we can set val =( 5+5) or val=5+5
int val = ({5 + 5;});
printf("Block value: %d\n", val);
then what is the need of all this ({5+5;""});
the quotes i gave ,i dint get that place completely.
--
/manohar