Link to home
Start Free TrialLog in
Avatar of gauravflame
gauravflame

asked on

1<i

BitWise
int andmask;
             for(i = 15;i >=0;i--)
             {
                   andmask =int 1<i;
                    printf("\n **** AndMask : ",andmask);
             }


Question :
1 ) What is the Meaning of  " int 1 < i " ?
 
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

it casts the result of (1 < i)  which returns a boolean value into int, ie 0 (false) and -1 (false)
Avatar of gauravflame
gauravflame

ASKER

anything else is true ,except 0 & -1 which are false
I am right
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
fine , thanks