General1 Flashcards
Define
Defining a constant or a MACRO.
Give a name to a constant value before the program is compiled
include
Used to include libraries outside of the main program
Flash
Where the program is stored
SRAM
Where sketch creates and manipulates variables
EEPROM
Store non-volatile information
Macro
Fragment of code that is given a name.
When it is used it is replaced by the contents of the macro
Putchar(int char)
Int putchar(int char)
Writes a character specified by the argument char to stdout. This is passed as it’s int promotion.
Typedef
Gives an existing type a new name
typedef unsigned long ulong
ulong = unsigned long
Struct
Defines a physically grouped list of variables to be placed under one name in a block of memory
What is an identifier
Refers to a name given to entities such as variables, functions, structures etc.
E.g. Int money - money is an identifier
What are the two types of Macro?
Object like macros
Function like macros