| Data representation | |||||||||
| How do we represent "stuff"? | |||||||||
| Example: file my.c | |||||||||
| %emacs my.c | |||||||||
| main () { | |||||||||
| float f = 3.14; | |||||||||
| printf ("%f\n", f); | |||||||||
| } | |||||||||
| %cc my.c | |||||||||
| %a.out | |||||||||
| What is the representation of "3.14"? | |||||||||
| in my.c: character (ASCII) | |||||||||
| in a.out (file or RAM): floating point (IEEE 754 standard) | |||||||||
| What is the representation of "\n"? | |||||||||