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

The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
Thelma spent 1/6 of her weekly allowance on dog toys.  1/4 on a dog collar and 1/3 on dog food.  What fraction of her weekly allowance is left
What is 25% of $500.00? I think the answer is $475.00 Can someone verify if twenty five percent of 500.00 is $475.00
What is 25% of $500.00? I think the answer is $475.00 Can someone verify if twenty five percent of 500.00 is $475.00
A blue rope is 3 times the length as a red rope. A green rope is 5 times as log as the blue rope of the total length of all 3 ropes equals 508.25m what is the l
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
What all the multiples of 81?
What is 25% of $500.00? I think the answer is $475.00 Can someone verify if twenty five percent of 500.00 is $475.00
Does an owl have a backbone?