News

In my 20 years of C/C++ programming, I’ve had to use a pointer to a function in almost every project. I don’t even recall the circumstances where it would not make a huge un-testable mess ...
And by that logic, if we can do something like some_function(&regular_variable) in C, i.e. pass a pointer as parameter to a function, we should be able to do the same with registers.
[Edited for Sanity and for Typos]Ok, my assignment is to write a mixed c++/nasm program.This is the example code my Professor provided to me, which I have ...
This may fall under the heading of "Don't do that" but did cause me to be slightly curious.What would happen if you say, created a pointer to a function that took three ints as arguments, but then ...