Symbols for Programming

Jobify
August 15, 2024
IT Knowledge

Basic Arithmetic Operators

  • + Addition
  • - Subtraction
  • * Multiplication
  • / Division
  • % Modulus

(remainder after division)

 

Comparison Operators

  • == Equal to
  • != Not equal to
  • > Greater than
  • < Less than
  • >= Greater than or equal to
  • <= Less than or equal to

 

Logical Operators

  • && And (both conditions must be true)
  • || Or (at least one condition must be true)
  • ! Not (negates a condition)

 

Assignment Operator

  • = Assigns a value to a variable

 

Other Common Symbols

  • ; Semicolon (often marks the end of a statement)
  • () Parentheses (for grouping expressions, function calls, etc.)
  • {} Braces (for defining blocks of code, like functions or loops)
  • [] Square brackets (for accessing array elements, defining lists, etc.)
  • , Comma (separating elements in lists, etc.)
Share: