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 decimal place does the digit "2" occupy in the number 432,079? hurry pleaseee i need help
How does the letter to the U.S. Attorney General describe Garvey and the UNIA? Do you believe this is biased? Why?
Choose the correct use of the semicolon in the following: a. On our trip, we traveled to New York, New York; Philadelphia, Pennsylvania; and Boston, Massachuset
China's top ten counsellors?
Bennie the banker has 35 coins that have a value of $4.35. Some of the coins Bennie has are nickels and the rest are quarters. Problem How many nickels does Ben
What is the difference between socialism and communism and capitalism
It takes Lester 15 minutes to walk 7 blocks to the swimming pool. At this rate, how many blocks can he walk in one minute? A. block B. block C. 2 blocks D. 5 bl
Which book revealed shocking secrets about the meat packing industry?
How did world war 2 happen ?
What can change the number of births in a population?