Answers for "field ‘’ declared as a function"

0

field ‘’ declared as a function

struct stack {
    char x[LIMIT][10];
    int top;
    void (*push)(struct stack *, char *);
    char *(*pop)(struct stack *self);
    void (*init)(struct stack *self);
    bool (*is_empty)(struct stack *self);
};

struct stack object;
object.push = push_function; // function defined elsewhere
object.pop = pop_function;   // function defined elsewhere
// ...
Posted by: Guest on April-21-2020

Code answers related to "field ‘’ declared as a function"

Browse Popular Code Answers by Language