CMPSC 311 - Intro to Systems Programming - C Fundamentals

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards for CMPSC 311 - Introduction to Systems Programming, covering C programming fundamentals.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Source files

Files with extensions .c and .h, representing the human-readable code.

2
New cards

Object files

Files with the extension .o, resulting from the compilation of source code.

3
New cards

Linker

A program that combines object files and libraries to create an executable program.

4
New cards

Library

A collection of pre-compiled object files that can be linked into a program.

5
New cards

main()

The function where all C programs begin.

6
New cards

Function Prototype

A declaration that specifies the return type and arguments of a function.

7
New cards

stdin

Standard input stream provided to UNIX programs.

8
New cards

stdout

Standard output stream provided to UNIX programs.

9
New cards

stderr

Standard error stream provided to UNIX programs.

10
New cards

Pass-by-value

Passing the value of a variable to a function. Changes to the parameter within the function do not affect the original variable.

11
New cards

Pass-by-reference

Passing the memory address of a variable to a function, allowing the function to modify the original variable.

12
New cards

&

Operator used to obtain the memory address of a variable.

13
New cards

Dereferencing (*)

Operator used to access the value stored at a memory address held by a pointer.

14
New cards

const

Qualifier that indicates a variable's value cannot be changed after initialization.

15
New cards

Array

A contiguous block of memory used to store elements of the same type. C arrays do not have built-in methods or bounds checking.

16
New cards

String in C

An array of characters terminated by a NULL character ('\0').

17
New cards

Error codes

Values that indicate a function executed successfully or had an error.

18
New cards

malloc()

Allocating memory in the heap segment.

19
New cards

free()

Freeing memory allocated in the heap segment, done to prevent memory leaks.