Fundamentals of Programming - C Operators

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

flashcard set

Earn XP

Description and Tags

Flashcards covering C programming language operators including arithmetic, relational, logical, bitwise, assignment, and increment/decrement operators.

Last updated 10:20 AM 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

18 Terms

1
New cards

Operator

A symbol that is used to perform mathematical or logical manipulations in the program.

2
New cards

Arithmetic Operators

Operators used to perform basic mathematical calculations like addition, subtraction, multiplication, division, and modulus operations in an expression.

3
New cards

Modulo Division Operator (%\%)

An arithmetic operator that gives the remainder value of a division operation (for example, C=A%BC = A \% B gives remainder value).

4
New cards

Relational Operators

Operators used to compare the value of two variables or operands.

5
New cards

Logical Operators

Operators used to compare two or more relational expressions.

6
New cards

Logical AND Operator (&&\text{\&\&})

A logical operator that evaluates to true only if all conditions are true (for example, if c=5c = 5 and d=2d = 2, then ((c==5) && (d>5))((c == 5) \text{ \&\& } (d > 5)) returns false).

7
New cards

Logical OR Operator (\mid\mid)

A logical operator that evaluates to true if at least one condition is true (for example, if c=5c = 5 and d=2d = 2, then ((c==5)(d>5))((c == 5) \mid\mid (d > 5)) returns true).

8
New cards

Logical NOT Operator (!!)

A logical operator that reverses the truth value of an expression (for example, if c=5c = 5, then !(c==5)!(c == 5) returns false).

9
New cards

Bitwise (or Binary) Operators

Special operators supported in C for manipulation of data at the bit level, used for testing bits and shifting them right to left or left to right.

10
New cards

Binary Complement Operator (\sim)

A bitwise operator that yields (n+1)-(n + 1) for a given operand nn (for example, if B=2B = 2, B\sim B gives 3-3).

11
New cards

Left Shift Operator (\ll)

A bitwise operator that shifts bits to the left; left shifting one time is equal to multiplying the value by 2 one time.

12
New cards

Right Shift Operator (\gg)

A bitwise operator that shifts bits to the right; right shifting one time is equal to dividing the value by 2 one time.

13
New cards

Assignment Operators

Operators used to assign values for variables in programs.

14
New cards

Increment or Decrement Operators

Operators used to increment or decrement a variable or expression value by 1.

15
New cards

Unary Pre-Increment (++operand++\text{operand})

An operator that first evaluates the incremented value and then assigns it (for example, A=++10A = ++10 first evaluates 11 and assigns A=11A = 11).

16
New cards

Unary Pre-Decrement (operand-\text{operand})

An operator that first evaluates the decremented value and then assigns it (for example, A=10A = --10 first evaluates 9 and assigns A=9A = 9).

17
New cards

Unary Post-Increment (operand++\text{operand}++)

An operator that first assigns the current value and then increments it by 1 (for example, A=10++A = 10++ first assigns A=10A = 10 then increments AA by 1).

18
New cards

Unary Post-Decrement (operand\text{operand}--)

An operator that first assigns the current value and then decrements it by 1 (for example, A=10A = 10-- first assigns A=10A = 10 then decrements AA by 1).