Assume a program has the following variable defenition: int a, b =2; float c = 4.2; and the following statement: a = b * c; What
will be stored in a? A. 8.4 B. 8 C. 0 D. None of the above
1 answer:
Answer:
The correct option is B.
Step-by-step explanation:
In a program the variables are defined as
int a, b =2;
float c = 4.2;
The given statement is
a = b * c
a = 2 * 4.2
a = 8.4
It is given that variable a is an integer. So, only integer value can be stored in a.
a ≈ 8
It means 8 will be stored in a. Therefore the correct option is B.
You might be interested in
X = 1
Explanation :
when you multiply negative 2 by negative six you get twelve. when you multiply positive one by negative six you get negative six.
The sunset is 25. how this helps!
Answer:
23 pints
Step-by-step explanation:
Answer:

Step-by-step explanation:

Cos 300 = Cos ( 360 - 60)
= Cos 60

This is called a double equation. If you solve for X, you would get 'any whole number.'