Re: question about linked list implementation in kernel.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Mohit,

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  on


int val = ({5 + 5;});
    printf("Block value: %d\n", val);

i mean we can set  val =( 5+5) or val=5+5
then what is the need of all this ({5+5;""});
 the quotes i gave ,i dint get that place completely.




--
/manohar

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux