Is C++ superset of C?

14, Dec, 2018

Have you ever think that source which is valid C program and at the same time valid C++ code may behave differently?

int foo(float a) {
    auto v = a;
    return v > 0;
}

int main() {
    return foo(0.5f);
}