From mboxrd@z Thu Jan 1 00:00:00 1970 From: bowman@montana.com (bowman) To: help-gcc@gnu.org Subject: Re: Declaring variables mid-function Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: References: <385c11fa@oit.umass.edu> <5vhARpAQ5BX4EwUB@howgarth.demon.co.uk> X-SW-Source: 1999-12n/msg00267.html Message-ID: <19991231222400.5j3d6JL1iiaRYgIfe1sQlnJdEKXdyRoCnfsebv6biaE@z> Jamie Walker wrote: >In standard C, you cannot declare variables part-way through any >function. I won't stick my neck out and say it is standard, as I don't have Harbison & Steele handy, but gcc will accept declarations at the head of any block. So int foo() { int bar; bar = 1234; { int fubar; for (fubar=0; fubar