dbsoloplayswowowkzsn dbsoloplayswowowkzsn
  • 01-07-2019
  • Advanced Placement (AP)
contestada

Given the following code segment,

int x = 14;
int y = 8;

what is the data type of the value of the expression (x / y)?

int
double
numeric
Error: possible loss of precision
Unable to be determined

Respuesta :

dmolnar2022 dmolnar2022
  • 04-07-2019

Answer:

int

Explanation:

if both variables are integers than there is no way for the data type to change.

Answer Link

Otras preguntas

Yolanda owns 4 rabbits. She expects the number of rabbits to double every year.a) after how many years will she have 64 rabbits?b) write and equation to model t
would you rather be a senator or a representative member? why or why not?
NaOH  + H2SO4 =NaOH + HNO3  =Cu(OH)2 + HCl =                H2SO4 =                        HNO3 =
what percentage of 1457 is 898?
what percentage of 1457 is 898?
What is the formula for the volume of a cuboid?
Work out the number that is halfway between 27 times 38 and 33 times 38.Show your working out aswell.
An oscillator makes four vibrations in one second. What is its period and frequency?
The diagram shows a patio in the shape of a rectangle. The patio is 3.6m long and 3m wide. Mathew is going to cover the patio with paving slabs. Each paving sla
A pack of 9 toilet rolls costs £4.23 A pack of 4 toilet rolls costs £1.96 Which pack gives the better value for money? You must show all your working.