295
Whitespace (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] exocrinous@lemm.ee 1 points 9 months ago

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

[-] Ferk@kbin.social 11 points 9 months ago* (last edited 9 months ago)

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;

[-] exocrinous@lemm.ee 0 points 9 months ago

That's because C was designed by a fool.

[-] Aatube@kbin.social 4 points 9 months ago* (last edited 9 months ago)
[-] Tja@programming.dev 3 points 9 months ago
[-] CanadaPlus@futurology.today 3 points 9 months ago

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

[-] Aatube@kbin.social 2 points 9 months ago

Why so? It’s what it actually is

this post was submitted on 02 Feb 2024
295 points (96.8% liked)

Programmer Humor

19564 readers
1227 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 1 year ago
MODERATORS