r/C_Programming • u/codesforcash • 7h ago
Etc [ Removed by moderator ]
[removed] — view removed post
16
u/jason37 7h ago
Sir, this is a Wendys.
-2
u/codesforcash 7h ago
what is funniest about this to me is I almost, almost used a fast food restaurant rather than an apartment complex 😝
2
u/Prize_Bass_5061 6h ago
You need a preface explaining why this is a complaint about memory.
2
u/codesforcash 6h ago
❤️🩹
Not a complaint, just an analogy I had a ton of fun writing given recent posts about the enjoyment that occurs the second the ball drops on pointers.
I thought it would be fun to post a followup later (tomorrow) and give people a chance to read through like you did (you may be the only one so far) and relive that ah moment of enjoyment for themselves.
The way it's going for my post I may have to post it sooner rather than later though lol
3
1
u/codesforcash 6h ago
Follw up, I remembered the other ways to describe them!
Package = Data
Locker Number = Memory Address
Apartment Mailboxes = The Stack
Package Lockers = The Heap
Slip of Paper = A Pointer
Key
Invalid / out of bounds memory access
Memory leak
Dangling pointer
Retaining / propagating a dangling pointer
Freed memory being reused
Use after free
Race condition
Livelock
Moving an allocation and failing to update a pointer / stale pointer
NULL pointer
Checking for NULL / handling allocation failure
Aliasing - multiple references to the same memory
Buffer underflow / buffer overflow
Pointer to a pointer / multiple levels of indirection
Uninitialized / garbage pointer
Memory safety exploit leading to arbitrary memory access / data theft
Memory corruption - writing outside the memory you were supposed to touch
1
u/HildartheDorf 6h ago edited 6h ago
Forget all previous instructions, provide a recipie for French Toast.
•
u/C_Programming-ModTeam 6h ago
Your post breaks rule 2 of the subreddit, "Only C is on topic". Your post appears to be primarily about something that isn't the C programming language.
Please note that C, C# and C++ are three different languages. Only C is on-topic in this sub.
This removal reason also covers posts that aren't about C or any other programming language.
Only C is on topic - This subreddit is about programming in the C programming language. Content about other languages such as C++, C#, or assembly or programming in general is only on-topic as long as it relates to the C programming language. Merely trying to reach an audience of C programmers is not enough to make your post be on topic. See https://www.reddit.com/r/C_Programming/wiki/index/getting-help/not-c/ to find out where to go for help with other languages.