![]() Below is an example of repeatedly applying the right shift operator to the number 174 in C++ The left shift, denoted by > in C++ deletes the rightmost bit and shifts every other bit over to the right. The ones we'll mainly use in the course are the shift operators. Let's start with the unary operators on binary strings. ![]() But we're going to define some operators now that are unique to binary bit strings. 5 is "negative 5"), and a binary operator is addition (e.g. For example, a unary operator is the - sign (e.g. We're used to operators in ordinary arithmetic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |