C++ Tutorial

C++ Operators

Operators

Operators perform arithmetic, comparison, and logical operations on values.

int a = 7, b = 2;
std::cout << a / b;
Try it Yourself
Run this CPP example in your local environment or course sandbox.