C For Dummies: C Language Comparison Symbols
C For Dummies: C Language Comparison Symbols
C For Dummies: C Language Comparison Symbols
Symbol
Meaning or Pronunciation
<
Less than
1 < 5
8 < 9
==
Equal to
5 == 5
0 == 0
>
Greater than
8 > 5
10 > 0
<=
4 <= 5
8 <= 8
>=
9 >= 5
2 >= 2
!=
Not equal to
1 != 0
4 != 3.99
If Comparison
<
==
>
<=
>=
!=
== (Equal to)
When programming in C, you use conversion characters the percent sign and a letter, for the most part as
placeholders for variables you want to display. The following table shows the conversion characters and what they
display:
Conversion Character
%c
Single character
%d
%e
%f
%g
%i
%o
%s
String of text
%u
%x
%%
(percent character)
Sequence
Represents
\a
\b
\f
\n
\r
\t
Tab
\v
\\
The apostrophe
\?
\0
\xnnn
\Xnnn
C Language Keywords
The C programming language has just 32 keywords for you to build robust programs. With only 32 keywords, they all
fit nicely into a short table. Use them wisely and well.
auto
double
int
struct
break
else
long
switch
case
enum
register
typedef
char
extern
return
union
const
float
short
unsigned
continue
for
static
void
default
goto
sizeof
volatile
do
if
signed
While