Views : 145,108
Genre: Science & Technology
Date of upload: Apr 28, 2024 ^^
Rating : 4.959 (40/3,839 LTDR)
RYD date created : 2024-05-17T01:44:24.299563Z
See in json
Top Comments of this video!! :3
18:51 C++ increments the value of C, but yields the old value
41 |
I worked on a commercial product, started in 1980s. The first public version was on the IBM AS/400 [now I5 series] and it used 128 bit addresses. The pain making it work was severe. Later on it was published for s390, Linux,Unix,Windows... both 32 and 64 bit... and that was relatively easy. The hard work had all been done.
25 |
size_t is used in std c/++ because it's the return type of sizeof. The reason they do that is because anytime you're working with arrays, indices, byte sizes, etc. are all times where that value can be potentially converted to/from a pointer or used as a pointer offset. That means it needs to be able to hold any value a valid pointer could so on 64bit machines it needs to be a 64 bit int, on 32 bit it needs to be 32 bits, etc. Thus size_t avoids all of the nonsense of int vs long vs long long, etc and avoids the hardcoded sizing of int32_t and just says "whatever the size of your pointer is the size of the integer you should use for indexing, here you go". C++ mucks this up a bit because it has extra large pointers in some cases due to multiple inheritance, v-tables, etc.
6 |
@DeusEx3
2 weeks ago
Alternative title: dyslexic man quits job to read articles full-time
1.2K |