Chapters 5 and 6 How to Code in C

Ace your homework & exams now with Quizwiz!

variable-length array

Is an array whose size is defined by an expression evaluated at execution time.

Local Variable

Local variable is known only in a function definition. Other functions are not allowed to know the names of a function's local variables, nor is any function allowed to know the implementation details of any other functions.

size_t

Represents an unsigned integral type. Type that is used for a variable that represents an array's size or indices

Extern and Static

Used to declare identifiers for variables and functions of static storage duration

Enumeration

introduced by the keyword enum, is a set of integer constants represented by identifiers. Values in an enum start with 0 and are incremented by 1.

How are Java and C different regarding function initialization?

C requires a prototype initialization line at the top of the file.

Multidimensional Arrays

Can have more than 2 indices.

const qualifier

The elements of the array become constants in the function body, and the array cannot be modified without throwing a compile error.

Function Call

The function call specifies the function by name and provides information as an argument that the called function needs to perform the task.

"\0"

string-termination character called the null character and placed at the end of every string in a char array.


Related study sets

Module 6: Quantitative Job Evaluation Methods

View Set

Config Advanced Windows server 2, Midterm.

View Set

Biochemistry/Biology Kaplan Review

View Set