Question #22872

What is the purpose of the following lines of code?
double price, taxRate, subtotal, total;
int quantity;

Expert's answer

In the first line - variable declaration float,for each variable allocated in stack memory - 8bytes, in the second line - is declared integer variable,for one allocated in stack-memory - 4 bytes.
LATEST TUTORIALS
APPROVED BY CLIENTS