Skip to the task
Layout
Back to classic view

You are looking at lesson 5. Your place is still lesson 7, task 1: Modules.

CHECKTask 14 of 23 · step 7: Drills: check yourself

What does double_it print?

What does the program print?

void double_it(int x) {
    x = x * 2;
}

int main(void) {
    int a = 5;
    double_it(a);
    printf("%d\n", a);
    return 0;
}
Stuck?

5. double_it gets a copy of a: it doubles its own x, and a stays 5.