Everything You Thought You Knew About Arrays is Wrong (in C Programming). This is Why.

Описание к видео Everything You Thought You Knew About Arrays is Wrong (in C Programming). This is Why.

An array is a list with a fixed length and type. An array is a special type of pointer variable. An array decays to a pointer when it’s passed to a function.

People say these things all the time. But is any of it true?

The fact of the matter is that in C, arrays don’t really exist. What you call an array is just a memory address and when you “index” into it, you are really just doing pointer arithmetic.

In this video, I dive down deeply to look at arrays at a low level to show both the way arrays are handled in computer memory and how your array definitions are translated into assembly language. By the end of this video, you may think about C arrays in a very different way!

If you haven’t already done so, I recommend that you watch my other video on arrays before watching this one:
   • The ONE Thing Most C Programmers Get ...  

MORE LESSONS
=============
To watch other videos about “low level programming”, go to the “Down To The Metal” playlist:
   • Down To The Metal  

Also, my series on “Programming C in Visual Studio”:
   • Program C in Visual Studio  

Be sure to subscribe to the Code With Huw channel so that you get a notification when I upload more lessons in this series.

PROGRAMMING BOOKS
====================
If you want to learn programming in more depth (and also support this channel!) you might think of buying one of my books. I have written books on C programming, Using Pointers in C, Recursion and other programming topics. You can buy my books (paperback or Kindle) on Amazon.

** The Little Book Of Pointers **
Amazon (US) https://amzn.to/2LF2aVb
Amazon (UK) https://amzn.to/2FViSvS

** The Little Book Of C Programming **
Amazon (US) https://amzn.to/2RXwA6a
Amazon (UK) https://amzn.to/2JhlwOA

“CODE WITH HUW” ON TWITTER:
=================================
  / codewithhuw  

“CODE WITH HUW” ON FACEBOOK:
=================================
  / codewithhuw  

Good luck! And good programming!

Комментарии

Информация по комментариям в разработке