21 Nov 2019

  • November 21, 2019
  • Amitraj
Type cast Operator:

  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 notation
           average = sum/ float (i);  // C++ notation

Translate

Popular Posts