CS10003: Functions in C Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering C programming functions, parameters, scope, storage classes, and preprocessor directives.

Last updated 10:13 PM on 9/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Function

A program segment that carries out a specific, well-defined task whenever it is called.

2
New cards

Caller Function

The function that invokes or calls another function during program execution.

3
New cards

Called Function

The function that is executed as a result of being called by another function, processing passed information and optionally returning a result.

4
New cards

Function Control Flow

The transfer of execution control from the calling function to the called function, and back to the caller function upon return.

5
New cards

Function Prototype

A declaration statement written before function calls that informs the compiler of a function's name, return type, and parameter types, ending with a semicolon.

6
New cards

Function Definition

The complete specification of a function consisting of a header line (return type, name, and parameters) followed by the body enclosed in curly braces.

7
New cards

Formal Parameters

Identifiers declared in the header line of a function definition that receive argument values passed into the function.

8
New cards

Actual Parameters

The specific variables or values provided inside the parameter list of a function call statement.

9
New cards

Return Statement

A statement that terminates execution of the called function and transfers control along with an optional single result value back to the caller.

10
New cards

Void Function

A function declared with the return type void that does not return a value to the calling function.

11
New cards

Nested Functions

The defining of a function inside another function, which is strictly prohibited in C.

12
New cards

Recursion

A process in which a function calls itself directly or indirectly in a cycle.

13
New cards

Scope of a Variable

The region within a program (such as a block enclosed in braces) from which a variable can be accessed or referenced.

14
New cards

Local Variable

A variable declared within a function or block that exists only during the execution of that block and is inaccessible outside it.

15
New cards

Global Variable

A variable declared outside all functions whose scope spans the entire program, accessible by default to all functions.

16
New cards

Call by Value

A parameter passing mechanism where a copy of the actual argument's value is passed to the called function, protecting the caller's original value from modification.

17
New cards

Call by Reference

A parameter passing mechanism where the memory address of the original argument is passed to the function, allowing changes to modify the caller's variable.

18
New cards

Header File

A file containing declarations and prototypes for standard library functions (e.g., , ) or custom functions, loaded using #include.

19
New cards

C Preprocessor

A text substitution module that processes the C source program prior to actual compilation, handling directives beginning with #.

20
New cards

Macro Definition

A preprocessor directive (#define) that replaces specified string identifiers with defined replacement strings or expressions before compilation.

21
New cards

Storage Class

A property specifying the scope, visibility, and memory lifetime of a variable during execution.

22
New cards

Automatic Variable

The default storage class (auto) for local variables in a function, where memory is allocated on entry and destroyed upon exit.

23
New cards

Static Variable

A local variable declared with static that retains its value across function calls throughout the entire program execution and is initialized only once.

24
New cards

Register Variable

A variable declared with register requesting the compiler to store it in CPU registers to optimize execution speed.

25
New cards

External Variable

A global variable declared across files using the extern keyword, informing the compiler of its existence without allocating new memory.