TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.4]

public class WorldIsRound {
    public static void main(String[] args) {
        char a=5;
        short b=-++a;
        System.out.println(b);
    }
}

    

Options]

A)5
B)6
C)-6
D)compile time error        

Click to See Answer
D)compile time error    

Next | assigning all small variables

Previous | using different datatype for abject reference

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions