Hi All.
Can we write the below mentioned 4 lines statements into 1 line statements? .
if(flag) // flag is a int variable
return 1;
else
return 0;
I dont want to use ternary operater. please let me know , is there any other way to do the same operation on single statement.
Thanks,
Sridhar.D
Can we write the below mentioned 4 lines statements into 1 line statements? .
if(flag) // flag is a int variable
return 1;
else
return 0;
I dont want to use ternary operater. please let me know , is there any other way to do the same operation on single statement.
Thanks,
Sridhar.D
Comment