C++ Programming Tips: Avoid Implicit Type Conversions
C++ performs “implicit conversions” between different types, such as silently converting char to int or int to char. “Implicit conversions” allow us to successfully provide a short or int to a function that requires a double.The above “implicit conversions” are provided by the language, and we cannot refuse them. However, C++ allows us to provide … Read more