Question

What is a variable type? Name three variable types, explain what each type represents, and provide...

What is a variable type? Name three variable types, explain what each type represents, and provide an example of how you might use each one.

Homework Answers

Answer #1

Variable Type:

Variable type is an attribute of data which specifies the size and layout of the variable's memory.

Variable Type or Data Type also specifies the range of values that can be stored within the memory and operations that can be performed on the variable.

Three types of Variable Types:

bool, int, float

Boolean

Stores value either true or false. memory 1 byte

bool b = true;

Integer

Stores value which is an integer type.

int a=1;

Float

Stores value which is a single-precision floating-point.

float b=1.3;

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Name three types of water pollutants, and provide an example of each. What classes of water...
Name three types of water pollutants, and provide an example of each. What classes of water pollutants are most important in Minnesota, in your opinion?
There are three types of waves in physics. Define and explain what these are, and provide...
There are three types of waves in physics. Define and explain what these are, and provide an example of each one.
1. Name the three types of financial management decisions? For each type give an example of...
1. Name the three types of financial management decisions? For each type give an example of a typical business transaction.
List the three types of unemployment and explain what causes each type.
List the three types of unemployment and explain what causes each type.
Explain four main types of privacy that employees might expect and provide examples where each type...
Explain four main types of privacy that employees might expect and provide examples where each type of privacy might potentially be violated in a business context
Name the three inventory accounts for a manufacturing business. Name the three types of costs in...
Name the three inventory accounts for a manufacturing business. Name the three types of costs in a manufacturing business. Name the three types of manufacturing costs in a manufacturing business. What is the difference between period costs and product cost? Explain and give one example of each type. Identify each if the following costs for the manufacturer of televisions.      M = direct materials      L = direct labor      O = manufacturing overhead      S = selling cost     ...
Define the three types of Returns to Scale with at least one example of each type....
Define the three types of Returns to Scale with at least one example of each type. What is the most common type to Return to Scale and why.
Financial Derivatives: what are the three types of speculators ? how does each type of speculator...
Financial Derivatives: what are the three types of speculators ? how does each type of speculator differ in terms of the way they trade or strategies they use?
Define the three main types of reference group. Within each type, think of examples that relate...
Define the three main types of reference group. Within each type, think of examples that relate to you as a consumer, and analyse how this might affect your own buying behavior.
(15 pts) What are the three types of merger? For each type, define such, and give...
(15 pts) What are the three types of merger? For each type, define such, and give one reason or justification for that type of merger.