How to Implement stack by function pointer and how to use it [closed]
No, function members cannot be declared in C structs (only in C++). The convention is to pass the struct pointer as the first argument in the functions when doing object oriented programming. Also, C++ really does the same thing, the “this” pointer is passed as the first argument, it is just hidden. struct stack{ int[10] … Read more