C Programming L49 - Arrays & Pointers

preview_player
Показать описание
Outlines how arrays and pointers are the same thing in C. Also how pointer arithmetic works.

Рекомендации по теме
Комментарии
Автор

Thanks for this! Pointers start to sink in, but confusion is still lurking.
What I find very interesting is that when you declare an array and get the address of it and its content, the address rises, that is, goes to the next spot.
When you declare a couple of integer or character, instead, the addresses go backwards!
Wonder why but I can also keep the fascination :D

TheBardsCorner
Автор

good video but worth noting that ints may not always be 4 bytes. Typically they are, but the c standard does not dictate this. Best to use a sized type as defined in stdint.h (uint32_t) if you need to work with a known sized type

Mike-gseo
Автор

Thanks Lucas, nice tutorial and very clear explanation of the concepts. Wonder if you should say something about sizeof, or are you leaving that for the next one?

TheKeef
Автор

Hello Apple programming!
I have learnt c programming at my university and your videos helped me a lot! Thank you very much!
Do you have as a project the idea of making tutorials on OpenGL? Because I think that it is something that interests a lot of people.
Thank you for everything!

Rambo
Автор

Thanks for this tutorial (and series). I'm aware you probably have your hands full with swift/cocoa at the moment, but if you get a chance to spare a dynamic memory allocation (malloc/calloc/afree/free) tutorial, I would be very grateful!

SG-mpnl
Автор

Thanks, very illuminating! Moaaar please! :)

kensai
Автор

c is great because you can see how everything works. haha, get it?.

taskfyai