this post was submitted on 08 Jan 2022
17 points (100.0% liked)

Programmer Humor

37700 readers
105 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

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

All those are ways of calling string in C? Why are there so many?

[–] [email protected] 1 points 3 years ago (1 children)
[–] [email protected] -1 points 3 years ago (1 children)
[–] [email protected] 2 points 2 years ago

Not necessarily a bad thing. If your method of invocation gives context about its possible use cases. You can make the program more safe because you know it's being used appropriately. If you're just passing a pointer around anything could happen to it. So it's hard to help the programmer not make mistakes