Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Whats the difference between bitwise and logical operators?
[b][red]This message was edited by yvan at 2006-5-24 19:47:29[/red][/b][hr]
Whats the difference when your using bitwise operators and logical operators in a conditional statements?
if ((val==1)|(val==2)) printf("%d
if ((val==1)||(val==2)) printf("%d
Which do you think is better and why is that? Thanks again for the replies ^_^
0 · ·