Can code that is valid in both C and C++ produce different behavior when compiled in each language?