most used coding symbols
Here’s a list of most used coding symbols (characters) along with their common names and uses in programming:
Symbol | Name | Common Use in Programming |
---|---|---|
= |
Equals / Assignment Operator | Assigns value to variable |
== |
Equality Operator | Compares two values |
!= |
Not Equal | Checks inequality |
> |
Greater Than | Comparison |
< |
Less Than | Comparison |
>= |
Greater Than or Equal | Comparison |
<= |
Less Than or Equal | Comparison |
+ |
Plus | Addition or string concatenation |
- |
Minus | Subtraction |
* |
Asterisk / Star | Multiplication |
/ |
Slash / Forward Slash | Division |
% |
Modulus | Remainder after division |
++ |
Increment | Increases value by 1 |
-- |
Decrement | Decreases value by 1 |
&& |
Logical AND | Used in conditions |
` | ` | |
! |
Logical NOT | Negation |
& |
Bitwise AND | Bitwise operations |
` | ` | Bitwise OR |
^ |
Caret / XOR | Bitwise XOR |
~ |
Tilde | Bitwise NOT |
-> |
Arrow | Accessing struct/class members (C/C++) |
. |
Dot | Access object properties |
, |
Comma | Separator |
; |
Semicolon | Statement terminator |
: |
Colon | Used in loops, conditions, dictionaries |
:: |
Scope resolution (C++) | Refers to class or namespace scope |
? |
Ternary operator (part of ?: ) |
Conditional expression |
() |
Parentheses | Function calls, grouping |
{} |
Curly Braces / Brackets | Code blocks |
[] |
Square Brackets | Arrays or indexing |
"" |
Double Quotes | String declaration |
'' |
Single Quotes | Character or string literal |
\ |
Backslash | Escape character |
// |
Single-line Comment (C++, Java, JS) | Code documentation |
/* */ |
Multi-line Comment | Multi-line comment blocks |
# |
Hash / Pound | Comments in Python, preprocessor in C |
$ |
Dollar Sign | Variable in PHP, shell scripting |
@ |
At Symbol | Decorators in Python, annotations in Java |
=> |
Fat Arrow | Arrow functions in JavaScript |
Want a visual cheat sheet for beginners with all of these? I can make that too!
Comments
Post a Comment