Index
Symbols
() (parentheses)
enclosing arguments, 13
in expressions, unbalanced, 46–47
\ (backslash)
in string literals, 321
= (equal sign)
assignment statement, 34
vs. equal signs (==), 89
== (equal signs)
vs. equal sign (=), 89
% (percent sign)
in format specifiers, 329
modulus operator, description, 42
modulus operator, online example, 45
, (comma)
separating arguments, 13
show decimal separators, 328
: (colon), path separator, 522
{ } (braces)
layout, 86
matching, 86
readability, 86
&& (ampersands), and operator
definition, 111
flowchart, 112
vs. or operator, 114
short-circuit evaluation, 114–115
* (asterisk), multiplication operator, 41
^ (caret), convert letters to uppercase, 328t
$ (dollar sign), in variable names, 33
" (double quote), String character delimiter, 61
! (exclamation point), not operator, 112
!= (exclamation point, equal), not equal operator, 88–89
> (greater than), comparison operator, 88–89
>= (greater than, equal), comparison operator, 88–89
((left paren), enclose negative numbers in parentheses, 328
< (less than), comparison operator, 88–89
<= (less than, equal), comparison operator, 88–89
? (question mark), conditional operator, 87. See also if statements
' (single quote), character literal delimiter, 61
_ (underscore), in variable names, 33
|| (vertical lines), or operator
definition, 111
flowchart, 112
vs. and operator, 114
short-circuit evaluation, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access