Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
puts() prints a string on the terminal (standard output) with a newline appended: put string.
-
And that's why we put braces around every block, even if they just contain one line.
-
@anonymus19941 strike! great way to trip up people if you hide that in a formatted style like this. Static initialisers work also fine.
@ethernetzero that's not the point, and in fact, I don't do that because it adds verbosity for nothing. Well, except in my company where coding style demands that. -
@mampf I've never had an error because of this. However, in my company, it's coding standard, so I use it even if it sucks - but inconsistency between devs would suck even more.
-
@halfflat yeah. the Elvis operator is also great. I also really like null-safe traversal operator object?.property but C doesn't have those
Related Rants
Can you see it? :-)
random
fun with c