| | |
Bitwise operators
![]() |
Anybody understand these? I'm having the hardest time with them. Partly because I don't see a use for them 
But what would be an example of a time when you would need to operate on a bit itself? As in, what is their purpose?
Thanks for any help

But what would be an example of a time when you would need to operate on a bit itself? As in, what is their purpose?
Thanks for any help
Most of the time you don't need to use the bitwise operations. The only time I've had to operate with bits is combining the modes in the ifstream/ofstream constructors:
Also when I dealt with bitmaps and transparency, I had to use masking and it involved bitwise knowledge.
C Syntax (Toggle Plain Text)
ifstream in( "myfile.txt", ios::in | ios::binary ) ;
Also when I dealt with bitmaps and transparency, I had to use masking and it involved bitwise knowledge.
![]() |
Similar Threads
- Enquiries about Bitwise operators (C++)
- Question Regarding "Bitwise Operators in C" (C)
- Code Snippet: Binary to decimal using bitwise operators (JavaScript / DHTML / AJAX)
- Diff b/w logical operators and bitwise operators...? (C)
- Bitwise operators/ undefined and implementation-defined? (C++)
- Problems with bitwise operators (C)
Other Threads in the C Forum
- Previous Thread: Windows Messenger
- Next Thread: Algorithm for checking contiguous blocks
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi





