Type cast Operator:
C++ permitts Explicit type conversion of variables or expressions using the type cast operator.
average = sum/ float (i); // C++ notation
C++ permitts Explicit type conversion of variables or expressions using the type cast operator.
(type name) expression // C notation
type name (expression) // C++ notation
Ex: average = sum/ (float)i; // C notationtype name (expression) // C++ notation
average = sum/ float (i); // C++ notation