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*

5
  • 1
    \$\begingroup\$ You can remove the space after the comma in the main definition to save a byte. \$\endgroup\$ Commented Dec 9, 2015 at 19:25
  • \$\begingroup\$ Nice, I'll edit the post now \$\endgroup\$ Commented Dec 9, 2015 at 20:24
  • \$\begingroup\$ You can save 2 more bytes with char**v rather than char *v[]. (The space before * is not needed, and the types are equivalent.) \$\endgroup\$ Commented Dec 9, 2015 at 21:02
  • \$\begingroup\$ Sure enough, that works great. Thanks Mat \$\endgroup\$ Commented Dec 9, 2015 at 21:10
  • \$\begingroup\$ This uses some stuff from the tips page to shorten it. Note though that for Ideone I hardcoded a value for n. \$\endgroup\$ Commented Dec 9, 2015 at 21:53