sidneydominguez8516 sidneydominguez8516
  • 07-08-2019
  • Mathematics
contestada

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

Respuesta :

erinna erinna
  • 12-08-2019

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.

Answer Link

Otras preguntas

True or false most nativist Americans accepted the second wave of immigrants into the country
Two bakeries sell muffins that can be customized with different kinds of berries. Berry Bakery sells muffins for $14.50 a dozen, plus $0.50 for each kind of ber
In a gas turbine, air (kinematic viscosity of 1x104-5 m 2/s) flows over a 2 cm long turbine blade at 100 m/s. How long should the blade be in my lab's wind tunn
1. Suppose you take a coin and flip it 4 times in a row. After each flip you record whether the coin landed heads or tails. What is the probability you’ll get a
ASAP!! What are the equations that represent how the energy of an electromagnetic wave is related to the frequency of the wave and to the wavelength of the wave
PLEASE HELP ME‼️ what is the correct reason for each step and the proof?
Just-in-time delivery is not an important component of Lean manufacturing. a)- True b)- False
what is the value of the expression? (9÷3)+4(6-7)
u want to leave a 15% tip on a $33 meal. What is the total cost for the night?
how do you calculate this