Ask Question

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

+4
Answers (1)
  1. 5 April, 12:33
    0
    int

    Explanation:

    if both variables are integers than there is no way for the data type to change.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Advanced Placement (AP) if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers