r/badcode • • Mar 14 '21

c math has left the chat

Post image
4.7k Upvotes

94 comments sorted by

View all comments

25

u/PhoenixPaladin Mar 14 '21

Defining PI yourself immediately after linking math.h ...this has to be a joke

5

u/chrisnlnz Mar 15 '21

I feel like on this sub 90% of posts are jokes

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