Why use hexadecimal instead of decimal?

  Рет қаралды 5,481

CodeVault

CodeVault

Күн бұрын

Пікірлер: 11
@engdoretto
@engdoretto 4 жыл бұрын
You're a great teacher! Thank you so much!
@MRKRRNZ
@MRKRRNZ 5 ай бұрын
I decided to relearn C a few days ago and all these videos are so helpful. Just wanted to let you know your work is appreciated even though it’s been a few years.
@sherzodernazarov7514
@sherzodernazarov7514 13 күн бұрын
Thanks for all videos
@asifsaad5827
@asifsaad5827 4 жыл бұрын
thanks for making such a great content!!! by the by , is it possible for you to make a video on include guards?
@CodeVault
@CodeVault 4 жыл бұрын
That's a great suggestion! Will do!
@MuhundanS
@MuhundanS 3 жыл бұрын
this channel is so underrated
@k_ushagra
@k_ushagra 3 жыл бұрын
going by this, why ain't octal used instead of hex? is it because hex is a bigger radix and can point to more addresses/numbers than octal with the same number of bits ?
@CodeVault
@CodeVault 3 жыл бұрын
Because registers are usually a multiple of 4 number of bits. Thus you always use whole hexadecimal digits for any value (2 digits for 8 bits, 4 digits for 16 bits etc.). But with octal, you can't do that. For 8 bits you'd need 3 octal digits, but the last one can only go from 0 to 3. This weird rule would make octal clunky to use for memory. But it is actually used for things that have n*3 number of digits (like the permissions in Linux).
@believeinpractical3930
@believeinpractical3930 3 жыл бұрын
Awesome sir
@Awesome2844
@Awesome2844 2 жыл бұрын
Why the zeros at the left they don't count anyway?
@CodeVault
@CodeVault 2 жыл бұрын
Yeah, it's the same in decimal. 9 or 0009. It's still the value 9.
Arrays as function parameters in C
13:28
CodeVault
Рет қаралды 12 М.
Dereferencing in C
10:29
CodeVault
Рет қаралды 10 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,7 МЛН
Introduction to semaphores in C
12:24
CodeVault
Рет қаралды 125 М.
Why do programmers use hexadecimal numbers?
8:41
Jacob Sorber
Рет қаралды 58 М.
Deadlocks in C
10:59
CodeVault
Рет қаралды 26 М.
From the Rosetta Stone to Binary, Hex, Octal, and ASCII
39:53
What are void pointers in C?
10:05
CodeVault
Рет қаралды 30 М.
How to get environment variables in C
12:54
CodeVault
Рет қаралды 10 М.
Hexadecimals - Why we use Hexadecimal to represent Numbers
14:02
Learn2Teach - Miss Farwa Batool
Рет қаралды 1,8 М.
Binary & Hexadecimal Demystified
14:42
NesHacker
Рет қаралды 17 М.
How to properly deal with dynamically allocated memory
13:44
CodeVault
Рет қаралды 9 М.
What are variadic functions (va_list) in C?
13:49
CodeVault
Рет қаралды 21 М.