User Tools

Site Tools


embedded:c

This is an old revision of the document!


C

VARIABLES

  • char - 1 byte - is used to store a single character (ASCII) value
char Temp;    // Variable definition or declaration (letting compiler know we will need it in the future)
Temp = 25;    // Variable initialisation (assigning a value)
extern int my_var // Declaration. It tells the compiler that my_var is defined outside this file

Address of the variable

&temp        // Gives you an address - memory location of the variable temp
embedded/c.1757448687.txt.gz · Last modified: by v1ctor