(C++) operator\*

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) operator*

 

operator* is the operator to multiply two variables.

 


#include <cassert> int main() {   const int x = 3;   const int y = 4;   const int z = x * y;   assert(z == 12); }