List and briefly describe the variable types used in C.

What will be an ideal response?


Int: Use this variable type for an integer (positive or negative number).
Float: This variable type is for a real number that includes a decimal point, such as 1.299999.
Double: Use this variable type for a double-precision floating point.
Char: This variable type holds the value of a single letter.
String: This variable type holds the value of multiple characters or words.
Const: A constant variable is one you create to hold a value that doesn't change for the duration of your program. For example, you can create a constant variable called TAX and give it a specific value: const TAX - .085. If this variable is used in areas of the program that calculate total costs after adding an 8.5% tax, it's easier to change the constant value to a different number if the tax rate changes, instead of changing every occurrence of 8.5% to 8.6%.

Computer Science & Information Technology

You might also like to view...

The ________ statement acts like a chain of if statements. Each performs its test, one after the other, until one of them is found to be true or until the construct is exited without any test ever evaluating to true.

A) if/then B) if/else C) if/else if D) if/not if E) if/end if

Computer Science & Information Technology

The company that popularized personal computing was ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When a selection list is disabled, the ____ property is set to true.

A. size B. disabled C. enabled D. name

Computer Science & Information Technology

Which of the following does not appear on the Coding toolbar?

A. Save Code button B. Code selection buttons C. Code formatting buttons D. Collapse and expand buttons

Computer Science & Information Technology