Conditionals, Boolean Logic, Control Flow

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

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

How is truth in C?

A bit-wise 0 is false, anything else is labeled true

2
New cards

What about boolean expressions in C?

True and true results are exactly 1, while false and false results are exactly 0

3
New cards

What kind of logic does C follow generally?

Short Circuit Evaluation: The evaluation of a boolean sentence stops after finding its final confirmed truth value

4
New cards

What is control flow?

The path an execution takes through a program, the C model is linear flow defaulted

5
New cards

What is something about control flow statements that can happen?

These statements can essentially change the flow of execution, and it is how our programs can make decisions

6
New cards
<p>What happens when we translate the condition from C to Assembly?</p>

What happens when we translate the condition from C to Assembly?

The structure of the program ends up becoming lost, which usually happens when we try to do this

<p>The structure of the program ends up becoming lost, which usually happens when we try to do this</p>
7
New cards

What can a computer generally do?

A computer can make simple comparisons and jump to a program location, otherwise it is just a software construction if complicated