Views : 57,484
Genre: Science & Technology
Date of upload: Jan 22, 2019 ^^
Rating : 4.937 (18/1,127 LTDR)
RYD date created : 2022-03-10T08:13:09.104643Z
See in json
Top Comments of this video!! :3
6:46 was not expecting that Lol 😂
12 |
That isnt called integer overflow. Its just implicit conversion as stated by the compiler
128 still uses 8 bits only, its just the the msb is 1 and since char by default is signed, compiler treats it as a negative value. So if we do 2's complement of bin(128) we get bin(128) again back. And since 2's complement of a number is treated as negative value, the printed is -128.
If we used something like 256, that would be a overflow since it would try to access the 9th bit.
I didn't explained things in depth, but I hope you get the gist of it.
Well if someone is knew, then you may leave this information, later when you will be done studying binary and all, it will all come up to you, dont let this halt your learning as it did for me when I was learning C for the first time.
|
Start at 1:05
1 |
How come the absolute lowest at 5:00 is -127 when beforw it was -128. Plz I really want to know .
1 |
1:05 Enjoy
1 |
06:52 LOL
1 |
@codebreakthrough
5 years ago
Learn Javascript - bit.ly/JavaScriptPlaylist Learn Java - bit.ly/JavaPlaylist Learn C# - bit.ly/CSharpTutorialsPlaylist Learn C++ - bit.ly/CPlusPlusPlaylist Learn C - bit.ly/CTutorialsPlaylist
4 |