C++ Coding Test Pitfalls


  1. Unlike Python, C++ distinguishes between double quotes and single quotes.
    • In C++, "a" is not a character literal; it is an ordinary string literal, and its type is const char[2].

Comments