Skip to content

Implement CALL for C #41

@cayhorstmann

Description

@cayhorstmann

Make a progfileCodeCheck.c with the contents

// Student/instructor code

extern int atoi(const char*);
int main(int argc, char *argv[]) {
    int arg = atoi(argv[1]);
    if (arg == 1) print_T(FUN(ARGS));
    ...
}

where T is derived from the return type (print_int, print_double, print_char_pointer, print_bool, print_char, ...). If the return type is something else, the instructor/student code must contain a function print_T.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions