Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
worst.c - foolishness
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="August Derleth, post: 1696044"] Pop's got a point, as usual. :) If you don't pass any arguments to gcc, it compiles a C-like language called GNU C. If you pass the correct arguments, it compiles Standard C. As this is clc, we want to discuss Standard C as opposed to GNU C. You could take your ball to a gcc-specific froup and play it by your rules there, but it really isn't on-topic here due to some oddnesses of how gcc behaves by default. For example: int foo(int arg) { int bar(int gry) { int zee = 23; return gry * zee; } return bar(arg); } is a perfectly correct GNU C program, and it behaves such that bar() is only visible within foo(). bar() is a local function, something that does not exist in Standard C. I have no idea why the gcc people decided to do that, but so far the Standards committee hasn't seen fit to canonize the behavior. ;) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
worst.c - foolishness
Top