• 0 Posts
  • 3 Comments
Joined 1Y ago
cake
Cake day: Jun 18, 2023

help-circle
rss

Looks like Test Driven Development + AI.

Hopefully the AI doesn’t get lazy and churn out huge if/else chains to pass the tests :D


Is this homework?

One possible example I can think of, is if there is a struct of a known size, and you want to find it, you can allocate a block of the same size, and get a ptr that is near it?

Also, if you know of a function vulnerable to buffer overruns, you can place data near the input for a given buffer as long as you know its size and therefore control what the vulnerable function reads.,


Initialization is a subset of assignment. Its initialization the first time you do an assignment.

I dont think declaration and definition overlap, but they are similar concepts. I think i would have swapped your descriptions though. Normally you have a function definition, which describes the function and its features, and you have variable declarations, which is literal objects/bits of memory.

Please dont take this response as gospel, i am not super happy with it :/