Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key


Play button


Play button




Click to flip

12 Cards in this Set

  • Front
  • Back
What are the seven basic types?
The seven basic types are char, wchar_t, int, float, double, bool, and void.
What is the difference between signed and unsigned integers?
A signed integer can hold both positive and negative values. An unsigned integer can hold only positive values.
Can a char variable be used like a little integer?
What is the primary difference between float and double?
The primary difference between float and double is in the magnitude of the values they can hold.
What values can a bool variable have? To what Boolean value does zero convert?
Variables of type bool can be either true or false. Zero converts to false.
What is void?
void is a type that stands for valueless.
By default, what is the type of the literal 10? What is the type of the literal 10.0?
10 is an int and 10.0 is a double.
How do you specify 100 as a long int? How do you specify 100 as an unsigned int?
100 as a long int is 100L. 100 as an unsigned int is 100U.
What is \b?
\b is the escape sequence that causes a backspace.
What does the % operator do? To what types can it be applied?
The % is the modulus operator, which returns the remainder of an integer division. It can be applied to integer types.
How do you declare an int variable called index with an initial value of 10?
int index = 10;
Of what type is the outcome of a relational or logical expression?
The result of a relational or logical expression is of type bool.