Quantcast
Channel: Tips for golfing in C - Code Golf Stack Exchange
Viewing all articles
Browse latest Browse all 67

Answer by l4m2 for Tips for golfing in C

$
0
0

Conditional printf different format

x>0?printf("%c",x):printf("%d",-x);printf(x>0?"%c":"%.f",x,0.-x);     // float goes different registers

Used here


Viewing all articles
Browse latest Browse all 67

Trending Articles



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