C++ Programming Tips: Using Type Casting Operators
Type casting is an operation that we should avoid, but most of the time we have to perform it. The most common way we use is to enclose the desired type in parentheses, but this is not recommended. The “(type)” casting intention is unclear, whether it is casting between two unrelated objects, removing const, or … Read more