Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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);
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict