Important Questions [5]
- The absence of which statement leads to fall through situation in switch case statement?
- Consider the following program segment and select the output of the same when n = 10:
- Rewrite the following code using the if-else statement: int m = 400; double cl). = (m > 300) ? (m/10.0) * 2; (m/20.0) - 2;
- Give the output of the following program segment: int n = 4279; int d; while(n>0) (d=n%10; System.out.println(d); n=n/100; }
- Which of the following data type cannot be used with switch case construct?
