Basic Structure of C Programming and Fundamentals

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/47

flashcard set

Earn XP

Description and Tags

A complete set of vocabulary practice flashcards covering the basic structure of C programs, compilation stages, tokens, data types, operators, input/output functions, and type conversion based on the lecture notes.

Last updated 10:41 AM on 9/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

48 Terms

1
New cards

Basic Structure of C Program

The standard layout of a C source file, consisting of Documentation, Link, Definition, Global Declaration, main() Function, Local Declaration, and Executable sections.

<p>The standard layout of a C source file, consisting of Documentation, Link, Definition, Global Declaration, main() Function, Local Declaration, and Executable sections.</p>
2
New cards

Documentation Section

The section of a C program consisting of comments that describe the program.

3
New cards

Link Section

The section of a C program used to include header files using preprocessor directives like #include <stdio.h>.

4
New cards

Definition Section

The section of a C program used to declare symbolic constants using #define.

5
New cards

Global Declaration Section

The section of a C program where global variables and global function declarations are placed.

6
New cards

main() Function

The mandatory entry point function of every C program from which program execution always starts.

7
New cards

Local Declaration Section

The section inside a function, such as main(), where variables used strictly within that function are declared.

8
New cards

Executable Section

The section of a C program containing logical instructions such as input/output operations, data processing, and calculations.

9
New cards

Compiler

A language translator that scans an entire high-level program in one go, checking syntactic and semantic errors simultaneously, and converts source code to object code.

10
New cards

Interpreter

A language translator that translates and executes high-level code one line at a time, checking syntactic errors line by line without creating object code.

11
New cards

Assembler

A program that converts assembly language, a low-level programming language using mnemonics and symbols, into machine code for the processor.

12
New cards

C Compilation and Execution Process

The workflow converting Source Code via Compiler into Object Code, linked by Linker with Additional Files into Executable Files, and loaded into Memory by Loader.

<p>The workflow converting Source Code via Compiler into Object Code, linked by Linker with Additional Files into Executable Files, and loaded into Memory by Loader.</p>
13
New cards

Linker

A utility program that combines separate object files or modules into a single executable file.

14
New cards

Loader

A utility program that loads an executable file into memory, prepares it for execution, and starts the program.

15
New cards

C Tokens

The fundamental, indivisible units in C programming that the compiler uses to understand and process a program.

16
New cards

Classification of C Tokens

The fundamental units of C categorized into Keywords, Constants, Identifiers, Strings, Special Symbols, and Operators.

<p>The fundamental units of C categorized into Keywords, Constants, Identifiers, Strings, Special Symbols, and Operators.</p>
17
New cards

Keywords

The 3232 reserved words in C that have predefined meanings and cannot be used as variable or user identifiers.

18
New cards

Identifiers

User-defined names assigned to variables, functions, arrays, and other entities within a program.

19
New cards

Constants

Fixed values that cannot be changed during program execution, including integer, floating, character, string, and symbolic constants.

20
New cards

Strings

Sequences of characters enclosed within double quotes.

21
New cards

Operators

Symbols that tell the compiler to perform specific mathematical, logical, relational, or bitwise operations on operands.

22
New cards

Special Symbols

Symbols in C that have specific syntactic meanings, such as parentheses (), braces {}, commas ,, and semicolons ;.

23
New cards

Classification of Data Types in C

Data types categorized into Basic Data Types (int, float, double, char, bool, void), Derived Data Types (array, pointer, function), and User Defined Data Types (union, structure, enum).

<p>Data types categorized into Basic Data Types (int, float, double, char, bool, void), Derived Data Types (array, pointer, function), and User Defined Data Types (union, structure, enum).</p>
24
New cards

Primitive Data Types

The basic built-in data types in C used to store simple values like integers, characters, and floating-point numbers.

25
New cards

Float Data Type

A primitive data type used to store decimal numbers with fractional parts, typically taking 4Bytes4\,\text{Bytes} of memory with an approximate range of 3.4e383.4\text{e}-38 to 3.4e+383.4\text{e}+38 and format specifier %f.

26
New cards

Character Data Type

A primitive data type used to store a single character, typically taking 1Byte1\,\text{Byte} of memory with a range of 128-128 to 127127 and format specifier %c.

27
New cards

Double Data Type

A primitive data type used to store decimal numbers with higher precision than float, typically taking 8Bytes8\,\text{Bytes} of memory with an approximate range of 1.7e3081.7\text{e}-308 to 1.7e+3081.7\text{e}+308 and format specifier %lf.

28
New cards

Void Data Type

An empty data type representing no value, commonly used for functions that do not return a value or for generic pointers (void *).

29
New cards

Derived Data Types

Data types in C created from primitive data types, including arrays, pointers, and functions.

30
New cards

Array

A derived data type that stores multiple values of the same type in contiguous memory locations.

31
New cards

Pointer

A derived data type variable that stores the memory address of another variable.

32
New cards

User Defined Data Types

Custom data structures created by programmers to organize data, including structures (struct), unions (union), and enumerations (enum).

33
New cards

Structure (struct)

A user-defined data type that groups related variables of different types under a single name.

34
New cards

Union

A user-defined data type that allows multiple member variables to share the exact same memory location.

35
New cards

Enumeration (enum)

A user-defined data type used to define named integer constants.

36
New cards

Variable

A named memory location used to store a value that can be changed during program execution.

37
New cards

Arithmetic Operators

Operators used to perform mathematical calculations: addition (+), subtraction (-), multiplication (*), division (/), and modulus (%).

38
New cards

Relational Operators

Operators used to compare two values, evaluating to 11 (True) or 00 (False), such as ==, !=, >, <, >=, and <=.

39
New cards

Logical Operators

Operators used to combine or negate conditions: Logical AND (&&), Logical OR (||), and Logical NOT (!).

40
New cards

Assignment Operators

Operators used to assign values to variables, including shorthand assignment operators such as =, +=, -=, *=, /=, and %=.

41
New cards

Increment and Decrement Operators

Operators ++ and -- used to increase or decrease the value of a variable by 11.

42
New cards

Bitwise Operators

Operators that perform operations on individual bits of operands, including & (Bitwise AND), ^ (Bitwise XOR), ~ (Bitwise NOT), << (Left Shift), and >> (Right Shift).

43
New cards

Conditional (Ternary) Operator

An operator requiring three operands with syntax condition ? expression1 : expression2 that evaluates expressions based on a condition.

44
New cards

printf() Function

A standard output library function declared in stdio.h used to display formatted text or values on the screen.

45
New cards

scanf() Function

A standard input library function declared in stdio.h used to take formatted input from the user via the keyboard.

46
New cards

Address Operator (&)

An operator used in scanf() to provide the memory address of a variable so the entered value can be stored in that memory location.

47
New cards

Implicit Type Conversion

Automatic type conversion performed by the compiler when converting one data type into another without explicit instructions from the programmer.

48
New cards

Explicit Type Conversion (Type Casting)

Manual type conversion performed explicitly by the programmer using the syntax (data_type) expression.