Learn C Programming - Negative Bytes - Bitwise Not ~ Operator

Published: 11 August 2018
on channel: Daniel Ross
2,448
27

In mathematics, the term "whole" numbers are represented as non-fractional values greater than and including zero: 0,1,2,3,4,5,6,... Also in mathematics, the term "integers" expand "whole" numbers to include non-fractional negative values: ...,-4,-3,-2,-1,0,1,2,3,4,... There are three basic data types in C that hold non-fractional values: short, int, and long. The sizes of these data types depend upon the architecture and compiler, but later on down the road I'll show you why you should always use the sizeof() operator to determine actual byte length. The short data type is most often contained in only 2 bytes. The leftmost bit of these data types represents the sign of the value being held, 0 is positive, and 1 is negative. We learned from my previous tutorial that a short with a value of 3 would look like this: 00000000 00000011.


On this page of the site you can watch the video online Learn C Programming - Negative Bytes - Bitwise Not ~ Operator with a duration of hours minute second in good quality, which was uploaded by the user Daniel Ross 11 August 2018, share the link with friends and acquaintances, this video has already been watched 2,448 times on youtube and it was liked by 27 viewers. Enjoy your viewing!