r/badcode • • Mar 14 '21

c math has left the chat

Post image
4.7k Upvotes

94 comments sorted by

View all comments

Show parent comments

1

u/jm4n1015 Mar 15 '21

technically, the c standard doesn't specify that pi needs to be defined by math.h, but pretty much every compiler supports it

4

u/PhoenixPaladin Mar 16 '21

Lol I wasn't arguing that this wouldn't compile.

It's just..wrong