Operation |
Symbol |
---|---|
+ |
Add |
- |
Subtract |
* |
Multiply |
/ |
Divide |
% |
Modulus |
& |
bitwise AND |
| |
bitwise OR |
^ |
Bitwise XOR |
~ |
Bitwise NOT |
Keyword |
Meaning |
break |
Exits a case in switch statement (here) or exits a loop (here) |
case |
|
char |
|
const |
|
continue |
Similar to break but causes a jump to the test condition of the enclosing loop |
default |
At the end of switch statement, a default clause can be inserted using this keyword |
do |
|
double |
The double precision floating point data type (8 bytes long usually) |
else |
|
enum |
|
extern |
If you have multiple source files in a project, you may declare global variables (or functions) in one that are required in another. In such cases, declare the variables just once in one of the files and in other files use the same declaration but prefix it with extern. |
float |
The single precision floating point data type (4 bytes long usually) |
for |
|
goto |
|
if |
|
int |
|
long |
|
register |
Prefix this to a variable declaration to ask the compiler to try and keep this variable in a register (faster than memory) |
return |
Return from a function; optionally may include a return value |
short |
|
sizeof |
|
static |
|
struct |
|
switch |
The beginning of a switch block – essentially a multiple “if” statement |
typedef |
|
union |
Allows you to declare two variables that occupy the same space in memory |
unsigned |
Prefix this to an integer declaration to make it an unsigned number |
void |
The empty data type – commonly used to indicate that a function returns nothing. |
volatile |
Prefix to a variable to prevent the compiler from using stale copies of it. |
while |