This screenshot shows the Preferences menu with two possible choices: Default Output C File Name and Default Output C++ File Name.