Class 3 Flashcards
Preproccesor
.c + .h = .i
#includes statements are expanded, #defines are replaced, and comments are removed
Compiler
.i —> .s (assembler source code)
Syntax parser
Assembler (Converts assembly code to object code)
.s —> .o (assembler code parser)
Which is an object file; fragments of machine code with unresolved symbols and some addresses not known
Linker (converts object code to executable code)
.o + library links a.out (default name); resolves symbols, generates an executable
Char
8 bits (1 bytes). Remember that each byte has its own address
Short
2 bytes
Int
4 bytes
Long
8 bytes
Float
4 bytes
Double
8 bytes
Long double
16 bytes
There are conceptually ______ of derived types constructed from the following types
Infinite class
In what ways can derived types by constructed
Array of objects (variables or derived types), pointers to objects of given type, structures, union
Constant variables are _______ only
Read. They cannot be modified during the execution of a program
Variable declarations formatt
Type identifier (, identifier);
Ex: int i, j, k;
Stdbool.h
Defines three macros bool,true,false