Lecture 3 Flashcards

(3 cards)

0
Q

Data Types:

  1. What are data type’s?
  2. Why use data type’s?
  3. How to use data type’s?
A
  1. Data type’s specifies what type of info is stored by the variables
  2. So the program knows how much memory to allocate and how to interpret the allocated memory
  3. To declare:
    ~ to declare an integer number: int __;
    ~ to declare a character: char __;
    ~ to declare a decimal number: float __;
    ~ to declare a decimal number w/ high precision: double __;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Variable:

  1. What are variables?
  2. Why use variables?
  3. How to use variables?
A
  1. Holds information that can be changed
  2. Programs w/ info that’s predetermined is not very useful
  3. Declare variables, initialize variables, & set, change, or display variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Conversion Specifiers:

~ is the part of the format specifier that determines the basic formatting of the value that is to be printed.

A

(Work more on this, ex. Like %c)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly