Jump to

v02-l1-problem

What is the problem with this code :

struct Counter {
    int count;
};

void increment(Counter c) {
    c.count += 1;
}

int main() {
    Counter clock = {1};
    increment(clock);
}

???