How C++ Integers are Stored into Memory
Ganesh H
We look at how Integers are converted into their binary representation, and stored into 4 bytes of memory in C++.
Written Guide and Source Code : https://www.notion.so/ganeshh123/How-Integers-are-Stored-into-Memory-606e0ff4af3b4f438fe40378d885fb7f
Full Playlist: https://www.youtube.com/playlist?list=PLhGp6N0DI_1TzGLCbiF0oYxbckUR9mXra C++ Written Guides : https://www.notion.so/ganeshh123/723a5a8dc0e04461b75b58a50e490024 All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26
00:00 - Introduction 00:05 - Declaring an Integer 00:13 - int : Allocating 4 Bytes of Memory 00:23 - age : Storing Memory Address with the Variable 00:38 - &age : Find the Memory Address of a Variable 00:46 - =20 : Storing the Number into Memory 01:04 - Conversion from Decimal Integer to Binary 01:28 - What the Memory will look like 01:48 - Retrieving the Data as an Integer 02:24 - Demonstration of Integer Storage
-————————————————————————————————————- C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significantly over time, and modern C++ now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Oracle, and IBM, so it is available on many platforms.
C++ was designed with a bias toward system programming and embedded, resource-constrained software and large systems, with performance, efficiency, and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, video games, servers (e.g. e-commerce, Web search, or SQL servers), and performance-critical applications (e.g. telephone switches or space probes).
NOTE: I am not a teacher by any means, these videos are just to help me improve my understanding.
Thanks for Watching! ... https://www.youtube.com/watch?v=nkPV39D0pVQ
24304644 Bytes