Decrement operator, −−, decreases value of variable by what number?

Home | Discussion Forum
Taiyari24Hour

Decrement operator, −−, decreases value of variable by what number?



View More Related Question

2) If a=20 and b=15 then the statement x=(a>b) ? a:b; will assign value of x.

3) If a and b are integers, then for a=14 and b=4 what will be the value of expression a/b.

4) What will be the output of the program?

  class Test
{
public static void main(String [] args)
{
int x=20;
String sup = (x < 15) ? "small" : (x < 22)? "tiny" : "huge";
System.out.println(sup);
}
}

5) When the operator ++ is placed after the variable name, first assignment of the value of the variable takes place and then the value of the variable is incremented, this operation is also called ………………………….. .

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.