In C ternary operator is available and is denoted by symbol? :
A traditional C statement and its equivalent C ternary construct is shown below :
If A==0
X=1
Else X=0;
X=A==0? 1:0;
In C ternary operator is available and is denoted by symbol? :
A traditional C statement and its equivalent C ternary construct is shown below :
If A==0
X=1
Else X=0;
X=A==0? 1:0;
0 Comments