this post was submitted on 02 Feb 2024
274 points (100.0% liked)

Programmer Humor

22262 readers
770 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 year ago (2 children)

Int *p is unreadable, unreasonable, and bad programming.

[–] [email protected] 9 points 1 year ago (1 children)

But C syntax clearly hints to int *p being the expected format.

Otherwise you would only need to do int* p, q to declare two pointers... however doing that only declares p as pointer. You are actually required to type * in front of each variable name intended to hold a pointer in the declaration: int *p, *q;

[–] [email protected] 5 points 1 year ago (2 children)

That's because C was designed by a fool.

[–] [email protected] 3 points 1 year ago

What, could you have done better in 70-whatever?

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Why so? It’s what it actually is