logo CodeStepByStep logo

function_tracing3

Language/Type: C function basics
Author: Allison Obourn (on 2020/09/14)

What is the output of the following code?

void function_a() {
    printf("A ");
}

void function_b() {
    function_a();
    printf("B ");
}

void function_c() {
    function_b();
    printf("C ");
    function_a();
}

int main() {
    function_a();
    function_b();
    function_c();
    function_b();
    return 0;
}
Output:

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.