Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
17 Cards in this Set
- Front
- Back
What are the 4 storage classes? |
Automatic, static, external, register |
|
Every variable has 2 attributes. What does storage type determine? |
Meaning of the value. |
|
Local variables are visible to other functions. |
False. |
|
Local variables are created only once during the first time a function is called. Subsequent calls don't require the creation of the variables. |
False. |
|
Every variable in C has two attributes. What does the"storage class" attribute determine? |
Storage visibility, storage location, storage lifetime. |
|
A variable iVal is declared outside the function. What type of class does it belong to? |
External. |
|
#include "filename.h" The above line of code causes the preprocessor to look for the named file only within the current working directory and doesn't look in the standard places. |
False |
|
#include "filename.h" The above line of code causes the preprocessor to replace the line with a copy of contents of the named file. |
True. |
|
Macros can replace function calls. |
True. |
|
#inclue <filename.h> The above line of code causes the preprocessor to look for the named file only within the standard places |
True. |
|
#include <filename.h> The above line of code causes the preprocessor to look for the named file only within the current working directory and in the standard palaces. |
False. |
|
Macros with parameters can be used in place of functions. This shows better performance, but creates more duplicate code. |
True. |
|
Which preprocessor directive makes program constants in a way that makes later changes easier. |
Define statement. |
|
What is the numerical value of item, wheels, given the following definition of the enumeration, parts? Enum parts{ engine, tires, wheels, windshield, doors }; |
2 |
|
Given the following declaration, create a typedef statement for an array of strings with 100 elements. Stringbuffer buffer; |
Typedef char *stringbuffer[100]; |
|
What is the numerical value for the item, wheels, given the following definition of the enumeration, parts? Enum parts{ engine = 10, tires, wheels, windshield, doors }; |
12 |
|
Given the following definition of an enumeration, Enum book {false, true}; Select the proper declaration. |
Enum bool myBool; |