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*

3
  • \$\begingroup\$ Welcome to the site! I don't think that C requires newlines after semi-colons, so I think you can shave off a newline while retaining your functionality. \$\endgroup\$ Commented Nov 20, 2017 at 7:02
  • \$\begingroup\$ Oh yeah for sure could've totally done that and bring it down to a 154 char solution. Though I don't think I could ever hit some of those 9 byte solutions with c. \$\endgroup\$ Commented Nov 20, 2017 at 7:34
  • \$\begingroup\$ It's best not to try to compare cross languages, the languages with the small solutions are designed to get short answers in the first place. (I've been here a while and I've never had the shortest answer yet) C answers can be impressive in their own right. I don't golf in C but I do know C a little bit and this seems like a pretty good answer to me. It's all about how cleverly you use the tools. \$\endgroup\$ Commented Nov 20, 2017 at 7:40