Mastering C++ 2025 – 400 Free Practice Questions to Pass the Exam

Disable ads (and more) with a premium pass for a one time $4.99 payment

Question: 1 / 565

In C++, what feature allows using the same name for different functions?

Macros

Function overloading

Function overloading in C++ allows the use of the same name for different functions. This is useful for creating multiple functions that perform similar tasks but with different parameter types or numbers. A is incorrect because macros are used for creating identifiers that can be replaced with a sequence of code. C is incorrect because templates are used for creating generic functions that can work with different data types. D is incorrect because the preprocessor is a tool that modifies the source code before it is compiled.

Get further explanation with Examzify DeepDiveBeta

Templates

Preprocessor

Next

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy