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

PLEASE HELP I GIVE THANKS
What is 10-25x+12+26x
In The Wealth of Nations, Smith writes about an “invisible hand.” Which of the following best describes the “invisible hand”? A. a guide that ensures that peopl
log base 3 of 81 multiplied by log base 2 of 16
a survey showed that 82% of youth most often use internet at home what fraction of youth surveyed most often use the internet somewhere else?
At Cassie's cashew shoppe,a sign says,"today only:20% off anything."Maribel realizes that she has a coupon for 1/5 off the price of anything in the shop. Which
Whats the value of x ? 10x=100000
The sum of n and 6 total 15
What is the slope in a line parallel in this equation 7x=-3y+15?Explain?
write the number as hundredths in fraction form and decimal form. 8/10 .5 6/10