TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.14] ternary

void main()
{
    int x=10;
    (x>10.0)?x=1:x=11;
    printf(ā€œ%dā€,x);
    getch();
}
    

Options]

A)11
B)1
C)compile time error
D)runtime error        

Click to See Answer
C)compile time error    

Next | unpredicated behaviour of character array in c

Previous | Assigning value to variable using comma operator

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