S
Senthil
Hi,
When standard states this
"
i = v[i++]; // the behavior is undefined
i = ++i + 1; // the behavior is undefined
"
Do both of the following code snippets produces undefined behaviour or
the second one alone.
int m = 2;
int answer = ++m * ++m + ++m * ++m;
or
int m = 2
m = ++m * ++m + ++m * ++m;
What are the sequence points inside these expressions?
Thanks,
Senthil
When standard states this
"
i = v[i++]; // the behavior is undefined
i = ++i + 1; // the behavior is undefined
"
Do both of the following code snippets produces undefined behaviour or
the second one alone.
int m = 2;
int answer = ++m * ++m + ++m * ++m;
or
int m = 2
m = ++m * ++m + ++m * ++m;
What are the sequence points inside these expressions?
Thanks,
Senthil