vb20225 vb20225
  • 20-02-2021
  • Computers and Technology
contestada

int iNum = (int) 38.78;

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 25-02-2021

Answer:

iNum = 38

Explanation:

Given

int iNum = (int) 38.78;

Required

What is the value of the variable?

In the above instruction, the variable is iNum and its value is 38

This is so, because int iNum = (int) 38.78; means that the integer part of 38.78 be stored in iNum.

In 38.78, the integer part is 38 and the fractional part is 0.78.

Hence, 38 will be saved in iNum and the 0.78 be discarded

Answer Link

Otras preguntas

what is the best possible way to verify claims a manufacturer makes about a supplements safety and effectiveness
PLS ANSWER TODAY TYSM :p -5y+1-3y+2=-9
I need to know this answer
Like an older television set, the core of some monitors is a large glass tube called a(n) ___
Rahul solved the equation 2(x – 1/8 ) – 3/5x = 55/4. In which step did he use the addition property of equality? A. Step 1 B. Step 2 C. Step 3 D. Step 4
where do you place commas?
In fig. p2.54, the hydrostatic force f is the same on the bottom of all three containers, even though the weights of liquid above are quite different. the three
Which of the following conditions would cause the salinity of ocean water to decrease? A. high rates of evaporation B. freezing of glaciers C. extremely ho
Is it true or false
Pls help me on this