Using Typecasted Pointers as lvalues

The C compiler can accept pointers that are typecasted to other pointer types as lvalues.

Listing: Example of a Typecasted Pointer as an lvalue
  char *cp;
  
  ((long *) cp)++;  /* OK if ANSI Strict is disabled. */
  

To use this feature, disable the ANSI Strict setting in the Language panel.