Quantcast
Viewing all articles
Browse latest Browse all 67

Answer by l4m2 for Tips for golfing in C

Omit return

Surprised that only this answer provided a similar situation

Instead of return x; in the end, use g=x; where g is a global variable.

In other situations, it may be more shortened. Refer here for more about this.


Viewing all articles
Browse latest Browse all 67

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>