#include int main() { // memory = an array of bytes within RAM (street) // memory block = a single unit (byte) within memory (house), used to hold some value (person) // memory address = the address of where a memory block is located (house address) char a; char b[1]; printf("%d bytes ", sizeof(a)); printf("%d bytes ", sizeof(b)); printf("%p ", &a); printf("%p ", &b); return 0; }
@SNKJay3 жыл бұрын
Thank you! Your channel is one of the reasons I get to keep my job :)
@kklol079 ай бұрын
how many times do you get into a situation which makes you feel like ok idk shit and i wanna get back to basics
@pacocarrion78692 жыл бұрын
Impressive explanation, respect.
@aircokezero Жыл бұрын
this channel is so underrated honestly
@kasmikregmi330 Жыл бұрын
not using short in a long time was totally funny dude, keep it up
@guilherme155611 ай бұрын
Great explanation, so simple to understand a complex topic!
@amir12.019 күн бұрын
I am watching this video in 12.18.2024, I am gonna say..... JUST PERFECT BRO🌟
@Notthetylor2 жыл бұрын
Wow. Wow. Wow. U r my bro!!!!!!
@jagdishpradhan55802 жыл бұрын
Oh man you've just clear my doubt. Thanks 👍
@EazyMF-EАй бұрын
Perfect
@oussamabensarjane75672 ай бұрын
I want to have your work space how did u make it ( vs studio and terminal for execution) is there any settings been made there cz when i try to execute a code dose compile
@whisperscribe Жыл бұрын
Thanks Bro, you are a Bro.
@JMBooy Жыл бұрын
Great explanation 👍
@gunthersantos8 ай бұрын
Gratefull for the rich content.
@KartikeyTT11 ай бұрын
Lovely
@adamcylee7 ай бұрын
EXCELLENT!
@JAyjofirst8 ай бұрын
perfectly explained
@Cinarbayramic5 ай бұрын
I have a single question how do you set up a compiler with vscode because i usually use visual studio
@Atomos_tech2 жыл бұрын
Awesome bro, Keep it up👍❤
@prumchhangsreng9792 жыл бұрын
I love the analogy, really help
@我想學英文3 ай бұрын
4:09
@NNNedlog2 жыл бұрын
Thanks again bro
@techgirl2482 жыл бұрын
thank you so muchhh wow. i was having trouble understanding this but its so much clearer now!
@dallasvienneau10 ай бұрын
Is there underlying(under the hood) code that is executed, that will find a memory address to assign to the variable a of data type char when char a = 'X'; is executed by the complier. Or asked a different way, how does the complier know its been given instructions to find a memory address to store a variable when char a = 'X'; is executed.
@proddirtneck8 ай бұрын
You need to learn assembly to figure that out
@happyjohn1656 Жыл бұрын
Why do memory addresses decrease instead of increment? This just the standard implementation?
@oussemaelmzergui7055 Жыл бұрын
i think so
@multicitygirl55273 жыл бұрын
thank u sooooo much!!!!!!!
@quotablecode10 ай бұрын
Why do you pronounce char as char
@hodayfa000h8 ай бұрын
Char as char? Or char as char? I like to say char more tbh Saying char is a disease, say it like: char, the best way
@unexplainablefish526 ай бұрын
@@hodayfa000h don't char char lol
@subhamdas2491 Жыл бұрын
That's too good
@PhamTony Жыл бұрын
Hi, Probably a naive question, but when I looked up the address on my linux, I got results such as these: 0x7fff9c1f2c2f 0x7fff9c1f2c2e 0x7fff9c1f2c2d I know they're hex as well, but why do they appear like this? Is that formatting configuration on VSCode or is it that the architecture of memory of Linux and Windows is different?
@minecraftsteve2711 Жыл бұрын
I think It's because on windows, memory is viewed differently from Linux, not for VSCode
@suriyatest37343 күн бұрын
Also how is there x which isn't a hexadecimal character?
@davidlu10034 ай бұрын
This is very useful when you want to hack a game, if you have hacked a game you know you need to know the address first and edit the data in the address later. I just want to know how to print the stored data in hexadecimal, then it will be quite similar to hacking a game.😁😁😁Or just please give a video that teaches how to code out a .sav file editor, then I will try to hack any games I want to play.
@davidlu10034 ай бұрын
please give a video that teaches how to code out a .sav file editor, then I will try to hack any games I want to play.😁😁😁 especially editing switch's sav file. I think a lot of people will love this video.😁😁😁
@FLMKane11 ай бұрын
What if I told you that you answered all my questions within 30 seconds?
@qmance80622 жыл бұрын
use a for loop geez :D
@coder49373 жыл бұрын
You promised me for face reveal in omegle..... Remember me XD
@siya.abc123 Жыл бұрын
int a = 'x'; double a = 'x'; ????😅
@oussemaelmzergui7055 Жыл бұрын
in C if you assign a character to a variable which is integer or double, it takes the ASCII code of this character. so basically : a = 120
@anassbenomar748 Жыл бұрын
php course please 😇😇😇
@gunnury73772 жыл бұрын
@HEMANTHKumar.p-hi5rn3 ай бұрын
Do memory address takes more space than value itself ? Val = 1; But address= 0x648847383883 😂 I don't understand seriously I am wrong I know