vernonstancoco
vernonstancoco vernonstancoco
  • 16-09-2020
  • Computers and Technology
contestada

JAVA

What will be the result of the following two expressions
if i= 10 initially
concidering both the expressions mutually inclusive ?

a)System.out.println(++i<=0);

b)System.out.println(++i<=10);
​

Respuesta :

tonb
tonb tonb
  • 16-09-2020

Answer:

false

false

Explanation:

a) since i starts out being 10, it will never be <= 0, so that one is always false.

b) i is incremented just before it is compared to 10, so it will be 11 at the time of the comparison, which will therefore also return false.

Answer Link

Otras preguntas

What 4 things does the volume of a river depend on?
Which canticle of the Divine Comedy has one canto more than the others? Inferno Paradiso Purgatorio Vita Nuova
A cell moves particles from a region of low concentration to a region of high concentration by????
Scientists use buoys to measure changes in ocean and wind temperatures in order to predict when el niño will occur. true or false.
What do the letters on the inside of the punnett square stand for?
what was the economic downturn that occurred from 2007- 2009 called
Can any one Pls help that Is not a answere
What is greater, 3/5r 4/10?
when you add two numbers the sum is 15 and the difference is one. what are the two numbers?
What are some bad things Julius Caesar did ?