Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 41
    \$\begingroup\$ Bloody finally. \$\endgroup\$ Commented Oct 29, 2014 at 20:18
  • \$\begingroup\$ @Optimizer I didn't get any kind of runtime error using gcc 4.7.2 on my computer. \$\endgroup\$ Commented Oct 29, 2014 at 20:21
  • 2
    \$\begingroup\$ @Emil Just vim auto-indentation; OP's call on what to do about this (if it progresses too far to fix, you can just pretend that it's a tab and make the distance 7) \$\endgroup\$ Commented Oct 29, 2014 at 20:31
  • 2
    \$\begingroup\$ @user23013 Because the program doesn't specify int as the return type for main and doesn't actually return an exit code; therefore, the return code is technically undefined behavior, hence the 13. \$\endgroup\$ Commented Nov 5, 2014 at 0:33
  • 2
    \$\begingroup\$ Some of the previous answers (starting from 85 GDB) did extra work to prepare for C. \$\endgroup\$ Commented Nov 21, 2014 at 20:27