In the loop the bits of 'num' are brought to the MSB one by one using left shift and ANDed with the 1000 0000 0000 0000
Mohanty said:
(Sat, Aug 6, 2011 01:00:32 PM)
What is "i<16"?
Abhishek said:
(Mon, Sep 19, 2011 07:35:13 PM)
@Mohanty
num<<i
shifts one bit, so to shift 16 bits the condition is set as i<16
Ankit said:
(Mon, Dec 26, 2011 11:31:54 PM)
Please explain it clearly.
Sadhna said:
(Sat, Jan 21, 2012 09:18:26 AM)
Hi, I have a doubt in printf statement it will print either 0 or 1 as we are printing the result of a conditional statement, can someone explain this to me ?
Prem said:
(Mon, Jan 30, 2012 10:06:17 AM)
If the condition is true it will print as 1 otherwise 0.