{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chap 2 notes 16 - or variable_type variable_name float and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
16 VARIABLES int variables store signed whole numbers. float variables store integer and fractional part. Variables must be declared before they can be used. To declare a variable, use the following format: variable_type variable_name;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or variable_type variable_name , . ..; float and int are among the many C++ variable_types. Examples: float X; // cm from base float Rate; // average speed in mph int I, qty;...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online