Learn C memory addresses in 7 minutes 📬

  Рет қаралды 73,940

Bro Code

Bro Code

Күн бұрын

Пікірлер: 47
@BroCodez
@BroCodez 3 жыл бұрын
#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; }
@SNKJay
@SNKJay 3 жыл бұрын
Thank you! Your channel is one of the reasons I get to keep my job :)
@kklol07
@kklol07 9 ай бұрын
how many times do you get into a situation which makes you feel like ok idk shit and i wanna get back to basics
@pacocarrion7869
@pacocarrion7869 2 жыл бұрын
Impressive explanation, respect.
@aircokezero
@aircokezero Жыл бұрын
this channel is so underrated honestly
@kasmikregmi330
@kasmikregmi330 Жыл бұрын
not using short in a long time was totally funny dude, keep it up
@guilherme1556
@guilherme1556 11 ай бұрын
Great explanation, so simple to understand a complex topic!
@amir12.01
@amir12.01 9 күн бұрын
I am watching this video in 12.18.2024, I am gonna say..... JUST PERFECT BRO🌟
@Notthetylor
@Notthetylor 2 жыл бұрын
Wow. Wow. Wow. U r my bro!!!!!!
@jagdishpradhan5580
@jagdishpradhan5580 2 жыл бұрын
Oh man you've just clear my doubt. Thanks 👍
@EazyMF-E
@EazyMF-E Ай бұрын
Perfect
@oussamabensarjane7567
@oussamabensarjane7567 2 ай бұрын
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
@whisperscribe Жыл бұрын
Thanks Bro, you are a Bro.
@JMBooy
@JMBooy Жыл бұрын
Great explanation 👍
@gunthersantos
@gunthersantos 8 ай бұрын
Gratefull for the rich content.
@KartikeyTT
@KartikeyTT 11 ай бұрын
Lovely
@adamcylee
@adamcylee 7 ай бұрын
EXCELLENT!
@JAyjofirst
@JAyjofirst 8 ай бұрын
perfectly explained
@Cinarbayramic
@Cinarbayramic 5 ай бұрын
I have a single question how do you set up a compiler with vscode because i usually use visual studio
@Atomos_tech
@Atomos_tech 2 жыл бұрын
Awesome bro, Keep it up👍❤
@prumchhangsreng979
@prumchhangsreng979 2 жыл бұрын
I love the analogy, really help
@我想學英文
@我想學英文 3 ай бұрын
4:09
@NNNedlog
@NNNedlog 2 жыл бұрын
Thanks again bro
@techgirl248
@techgirl248 2 жыл бұрын
thank you so muchhh wow. i was having trouble understanding this but its so much clearer now!
@dallasvienneau
@dallasvienneau 10 ай бұрын
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.
@proddirtneck
@proddirtneck 8 ай бұрын
You need to learn assembly to figure that out
@happyjohn1656
@happyjohn1656 Жыл бұрын
Why do memory addresses decrease instead of increment? This just the standard implementation?
@oussemaelmzergui7055
@oussemaelmzergui7055 Жыл бұрын
i think so
@multicitygirl5527
@multicitygirl5527 3 жыл бұрын
thank u sooooo much!!!!!!!
@quotablecode
@quotablecode 10 ай бұрын
Why do you pronounce char as char
@hodayfa000h
@hodayfa000h 8 ай бұрын
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
@unexplainablefish52
@unexplainablefish52 6 ай бұрын
​@@hodayfa000h don't char char lol
@subhamdas2491
@subhamdas2491 Жыл бұрын
That's too good
@PhamTony
@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
@minecraftsteve2711 Жыл бұрын
I think It's because on windows, memory is viewed differently from Linux, not for VSCode
@suriyatest3734
@suriyatest3734 3 күн бұрын
Also how is there x which isn't a hexadecimal character?
@davidlu1003
@davidlu1003 4 ай бұрын
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.
@davidlu1003
@davidlu1003 4 ай бұрын
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.😁😁😁
@FLMKane
@FLMKane 11 ай бұрын
What if I told you that you answered all my questions within 30 seconds?
@qmance8062
@qmance8062 2 жыл бұрын
use a for loop geez :D
@coder4937
@coder4937 3 жыл бұрын
You promised me for face reveal in omegle..... Remember me XD
@siya.abc123
@siya.abc123 Жыл бұрын
int a = 'x'; double a = 'x'; ????😅
@oussemaelmzergui7055
@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
@anassbenomar748 Жыл бұрын
php course please 😇😇😇
@gunnury7377
@gunnury7377 2 жыл бұрын
@HEMANTHKumar.p-hi5rn
@HEMANTHKumar.p-hi5rn 3 ай бұрын
Do memory address takes more space than value itself ? Val = 1; But address= 0x648847383883 😂 I don't understand seriously I am wrong I know
C pointers explained👉
8:04
Bro Code
Рет қаралды 210 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Dynamic Memory Allocation | C Programming Tutorial
31:51
Portfolio Courses
Рет қаралды 95 М.
How computer memory works - Kanawat Senanan
5:05
TED-Ed
Рет қаралды 3,4 МЛН
you will never ask about pointers again after watching this video
8:03
Explaining Pointers Until I Go Insane
6:42
Mults
Рет қаралды 346 М.
But, what is Virtual Memory?
20:11
Tech With Nikola
Рет қаралды 328 М.
Dynamic Memory with Malloc - Everything you Need to Know
13:51
Caleb Curry
Рет қаралды 10 М.
C data types 📊
11:08
Bro Code
Рет қаралды 90 М.
Stack vs Heap Memory - Simple Explanation
5:28
Alex Hyett
Рет қаралды 265 М.
why do header files even exist?
10:53
Low Level
Рет қаралды 443 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 762 М.