UNIT 2: C Programming Basics

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

flashcard set

Earn XP

Description and Tags

Flashcards covering core C programming vocabulary concepts including data types, syntax, format specifiers, operators, conditional decision-making statements, and loops.

Last updated 2:25 PM on 9/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

C Programming Language

A general-purpose, high-performance programming language developed by Dennis Ritchie in the early 1970s, used for system programming, application development, and embedded systems.

2
New cards

Dennis Ritche

he was an American computer scientist who created the C programming language in the early 1970s

3
New cards

Syntax

The format or correct format of writing code in a programming language.

4
New cards

Datatype

A category that identifies what kind of value a variable can store

5
New cards

==

Equal to

6
New cards

!=

Not equal to

7
New cards

>

Greater than

8
New cards

<

Less than

9
New cards

>=

Greater than equal to

10
New cards

<=

Less than or equal to

11
New cards

Preprocessor Directives

Instructions in C that begin with # (such as #include) used to include libraries or define macros before compilation.

12
New cards

back slash (\n)

It is called a newline escape sequence.

13
New cards

Main Function

The entry point of every C program, written as int main().

14
New cards

int

A C data type used for storing whole numbers

15
New cards

%d

The format specifier commonly used for integers

16
New cards

float

A C data type used for storing decimal numbers

17
New cards

%f

The format specifier commonly used for floating-point numbers

18
New cards

double

A C data type used for storing large decimal numbers with more precision

19
New cards

char

A C data type used for storing a single character (capital A)

20
New cards

%c

The format specifier commonly used fot character

21
New cards

printf()

A standard C library function used to display instructions or output on the screen.

22
New cards

scanf()

A standard C library function used to take or receive input from the user.

23
New cards

Format Specifiers

The symbols used to specify the type of data in input and output operations

24
New cards

Statement

An instruction or line of code performed by a program

25
New cards

Semicolon (;)

The symbol used to end a statement in C

26
New cards

return 0

The statement commonly used to terminate a c program successfully

27
New cards

Address Operator (&)

The symbol used in scanf() to specify the memory address of a variable where user input is stored.

28
New cards

String

A datatype used for more than one character

29
New cards

%s

The format specifier commonly used for strings

30
New cards

Boolean

A datatype used for true or false

31
New cards

Relational Operators

considered as comparison operation used two values to compare

32
New cards

Decision making

Programming logic that allows a program to choose between different actions based on conditions.