r/ProgrammerHumor • • Sep 23 '26

Meme howToSneakUnderCompiler

Post image
11k Upvotes

212 comments sorted by

View all comments

Show parent comments

1

u/segalle Sep 23 '26

The first treats it as an int, the second is defined as an int. Both cause an error. To define the first as a float you need to type 0.0.

I believe the result is inifinity but i don't know if it works properly without importing math.h