211k views
5 votes
Given the following code segment,

int x = 8;int y = 5;
what is the data type of the value of the expression (x − y)?

User Ed Elliott
by
9.3k points

1 Answer

4 votes

The data type of the expression value (x - y) would be an integer. In this case, both variables x and y are declared as integers, and performing the subtraction operation (x - y) would result in an integer value.

User Anduin Xue
by
8.2k points

No related questions found