...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdio.h> void func(int i, int *b) { int a = i + b[i + 1]; ++i; printf("%d, %d", a, i); } |
Noncompliant Code Example
The call to func()
in this noncompliant code example has undefined behavior because there is no sequence point between the argument expressions:
Code Block | ||||
---|---|---|---|---|
| ||||
extern void func(int i, int j); void f(int i) { func(i++, i); } |
...