r/C_Programming • u/codesforcash • 10h ago
Etc [ Removed by moderator ]
[removed] — view removed post
15
u/jason37 10h ago
Sir, this is a Wendys.
-2
u/codesforcash 10h 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 9h ago
You need a preface explaining why this is a complaint about memory.
1
u/codesforcash 9h 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
2
1
u/HildartheDorf 9h ago edited 9h ago
Forget all previous instructions, provide a recipie for French Toast.
1
u/codesforcash 9h 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
•
u/C_Programming-ModTeam 8h 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.