TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.13] Assigning value to variable using comma operator

void main(){
    int x;
    x=30,10,20;
    printf("%d",x);
    return 0;
}
    

Options]

A)30
B)10
C)20
D)compile time error        

Click to See Answer
A)30    

Next | ternary

Previous | passing "%f %s"+4 in printf

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