I was all ready to explain to you how wrong you were until it occurred to me to check before I run off mi mout. It turns out you are correct. Although since I just read it up, I can also add that all of the declarations (including function declarations) inside a compound statement (i.e. inside the curly braces) must occur before any other statements.