DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gcc.info) Subscripting

Info Catalog (gcc.info) Macro Varargs (gcc.info) C Extensions (gcc.info) Pointer Arith
 
 Non-Lvalue Arrays May Have Subscripts
 =====================================
 
    Subscripting is allowed on arrays that are not lvalues, even though
 the unary `&' operator is not.  For example, this is valid in GNU C
 though not valid in other C dialects:
 
      struct foo {int a[4];};
      
      struct foo f();
      
      bar (int index)
      {
        return f().a[index];
      }
 
Info Catalog (gcc.info) Macro Varargs (gcc.info) C Extensions (gcc.info) Pointer Arith
automatically generated byinfo2html