shah8 shah8
  • 09-12-2020
  • Computers and Technology
contestada

Which of the following will be output data type of int +int ?

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 14-12-2020

Answer:

int data type

Explanation:

Given

int + int

Required

Determine the data type of the output

I'll answer this question with the following illustration.

int x = 1

int y = 2

print(x + y)

At line 3, 1 and 2 will be added together.

[tex]1 + 2 = 3[/tex]

And 3 will be printed as integer.

Because 1 and 2 are of type integer.

Hence, when two or more integer variable are added together, the result is also an integer.

Answer Link

Otras preguntas

What is the slope of a line per pin divulgar to Line A?
Felicia lives 1 1/8 miles away from the school and .9 miles from Van Cortlandt park. How much closer does she live to the park that to school?
v=1/3(pi)r^2 solve for r
what impact falls on Japanese people after japan surrender in World War II​
If much of Miami sits between 0 and 0.5m above sea level, how will the city be impacted by an increase of 1° C in the ocean?
Kenny has 48 marbles. He gives his brother 1/3 and gave his cousin ⅜ of the marbles. How many marbles did he keep for himself?
2x + 5 = 15 Write in slope intercept form ( add the steps i need to show work )
How does a flipbook relate to the concept of motion?
What power would you multiply 22 by to get an answer of 22,000? A 10"2 B 104 C 105 D 103
no one is helping me​