by scott_s · 10y ago · 0 comments
for (int i = 0; i ? N; ++i) {
a[i]->val = i;
}
Is clearly either C or C++, but it's not valid C or C++ because "i ? N" is not a valid boolean expression in the for loop. I actually think your techniques would work on syntactically invalid code, but I'm curious if you tried.