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

Hemingway set The Old Man and the Sea in a little fishing village near Havana, Cuba, in the late 1940s. What kind of mood does this setting create? A. It creat
Which statement is true about angles 3 and 6?
Change The percent to decimal. 25 1/2
Explain the idea of 'western bias'
Which element would be expected to have a similar physical and chemical properties as oxygen, and why?
thicknessof an eyelash
somebody help me with this
The price of an mp3 player is reduced to three-fourths of its original price. The new price is $75. Find the original price of the mp3 player.
what is measurrment: KIH, JIH, KJI, and HKI?
How did the Ottoman Empire contribute indirectly to the start of world war 1
good job