preprocessor directives

¡Supera tus tareas y exámenes ahora con Quizwiz!

what are the two most common directives

#include, #define

what is the result of kms = KMS_PER_MILE

...

what can a C program expand

a C program may expand the number of operations available by supplying additional libraries

what does a preprocessor begin with

a preprocessor begins with a number symbol ( #) as it is the first non blanc character

what can an individual programmer create

a programmer can create libraries of functions

what does a library standard header file end with

each file name ends with the symbol .h

the other preprocessor directive #define does what

it associates the constant macro KMS_PER_MILE with the meaning 1.609

what does a library have

it has a standard header file

what does this directive do

it instructs the preprocessor to replace each occurence of KMS_PER_MILE in the text of the C program by 1.609 before the compilation begins.

what is a library

it is a collection of useful functions and symbols that may be accessed by a program

what is a constant macro

it is a name that is replaced by a particular constant value before the program is sent to the compiler

what is the preprocessor

it is a system program that modifies a C program prior to its compilation

what does a preprocessor do

it modifies the text of a C program before it is compiled

what does the #include <stdio.h> directive notify

it notifies the preprocessor that some names used in the program (such as scanf and printf) are found in the standard header file <stdio.h>

what gives a program access to a library

the #include directive gives a program access to a library

how many parts does the C program have

the C program has two parts

what are the two parts ot the C parts

the preprocessor directives and the main function

what are the preprocessor directives

they are commands that give instructions to the C preprocessor

what does this directive cause

this directive causes the preprocessor to insert from a standard header file into a program before compilation.


Conjuntos de estudio relacionados

Chapter 7- Bonds and their valuation

View Set

(Health) 8 - Florida Laws and Rules Pertinent to Insurance

View Set

Understanding Operating Systems - Computer Basics - GCF LearnFree.org

View Set