bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Programming/Programming Concepts
Programming•Programming Concepts

Operators in Programming

Operators are symbols or keywords that tell the computer what operations to do on values or variables.

What is an Operator?

An operator is a symbol or keyword that tells the computer what operation it should perform on values or variables.

In the example below, the + operator is used to add the numbers 10 and 5 together:

Runnable example

print(10 + 5)

For more details on language-specific operators, check out Python Operators , JavaScript Operators , Java Operators , and C++ Operators .

Types of Operators

There are many types of operators, but the most common ones are:

  • Arithmetic operators (+, -, etc.)
  • Assignment operators (=, +=, -=, etc.)
  • Comparison operators (==, >, <, etc.)
- Logical operators (&&,, etc.)
- Bitwise operators (&,, etc.)

Visit the pages linked to above for more details on each type of operator.

Previous

Type Casting in Programming

Next

Arithmetic Operators in Programming

This chapter

Overview
25

Lessons

105m

Read time

1. Understanding The Concepts of Programming2. What is Programming ?3. Variables in Programming4. Constants in Programming5. If Statements in Programming6. Arrays in Programming7. Loops in Programming8. Functions in Programming9. Recursion in Programming10. Scope in Programming11. Strings in Programming12. Data Types in Programming13. Type Casting in Programming14. Operators in Programming15. Arithmetic Operators in Programming16. Assignment Operators in Programming17. Comparison Operators in Programming18. Logical Operators in Programming19. Bitwise Operators in Programming20. Comments in Programming21. Input and Output in Programming22. Bits and Bytes in Programming23. Binary Numbers in Programming24. Hexadecimal Numbers in Programming25. Boolean Algebra

On this page

What is an Operator?Types of Operators