& and | are bitwise AND and OR operators respectively. They are usually used to manipulate the contents of a variable on the bit level. && and || are logical AND and OR operators respectively. They are usually used in conditionals.
Thursday, April 2, 2009
What is the difference between the & and && operators and the | and || operators?
Posted by Raghu Kumar on 7:05 PM
RSS Feed
Twitter
Orkut