Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!ut-sally!im4u!esc-bb!romp!lwh From: lwh@romp.UUCP (lwh) Newsgroups: net.lang.c Subject: Casting a postdecrement operand Message-ID: <114@romp.UUCP> Date: Fri, 23-May-86 16:01:00 EDT Article-I.D.: romp.114 Posted: Fri May 23 16:01:00 1986 Date-Received: Sun, 25-May-86 18:10:57 EDT Organization: IBM Corp. (Engineering Systems Products), Austin, TX Lines: 20 My version of pcc on the IBM RT PC allows the following expression: struct abc { char d[500]; }; struct cba { char e[200]; }; struct cba *cbap; ((struct abc *)cbap)++; to increment cbap by 500. It appears that the ANSI standard doesn't say anything about the legality of this syntax. Does anyone have any experience or opinions on this subject? Larry Henson {ihnp4 | seismo | gatech}!ut-sally!im4u!esc-bb!romp!lwh The standard disclaimer: No one , not even me, is responsible.