...
Code Block | ||||
---|---|---|---|---|
| ||||
#define INCREMENTINCREMOD(x, max) ((x) = ((x) + 1) % (max)); int index = 0; int value; value = INCREMENTINCREMOD(index, 10) + 2; /* ... */ |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#define INCREMENTINCREMOD(x, max) ((x) = ((x) + 1) % (max)) |
...
Code Block | ||||
---|---|---|---|---|
| ||||
inline int incrementincremod(int *x, int max) {*x = (*x + 1) % max;} |
...