Pointer Notation | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you so much really, the concept of pointers and arrays was a bit blurry for me, I used to find it very tedious to fathom. Thanks to your videos I can now go ahead and use pointers easily
Your channel is really a treasure for anyone interested in C

yassinedarbal-
Автор

Another interesting thing with pointer arithmetic is that if you have an array, like `int a[3] = {1, 2, 3};`, and you want to print the second element `a[1] = 2`, you can also write it as `printf("a[1] = %d\n", 1[a]);`. This works because under the hood, `a[1]` is equivalent to `*(a + 1)`, and `1[a]` is just a different way of writing the same expression: `*(1 + a)` :)

DmitryMorozov-mm
Автор

that's lesson 101 in embedded mcu programming, thanks for these videos

nkonyanechristopher
Автор

I remember the first time I saw pointers, it was just mumble jumble and very abstract and hard concept to grasp. Nowadays, it's my bread and butter. This video should have been available when I started! The topic is so simple once you learned it.

chillydill
Автор

I am still struggling to get my head around pointers. Especially the dereferencing part. For eg I declare a pointer
Why do i have use * for both referencing and dereferencing a pointer ! and the &

sandeepvk
Автор

whatever before or after or anything I do or did or know or knew or anything

ryanalnaser
Автор

whatever anything I do before or after or anything

ryanalnaser
Автор

In your example a mem address is a 8 byte long address. So an array is simply a pointer pointing to a place that contains such an address in the consequent 8 bytes. But there is somehow a type involved. A p++ results in an address+size of type, right? But where in mem is this information about of what types a pointer is?

AxelWerner
Автор

If it is a single dimension we can do like this....can u help me for two dimension sir by giving hint

Monica-cqhr
Автор

what if I wanted to print the first value "1" using pointer notation after b++? can *(b-1) get me the value of "1"
and in array notation after passing (a+1) to the function, how to get the first value of "1"?can a[-1] get me the value of "1"
THANKS A LOT FOR THE VIDEOS :)

zizou
Автор

whatever anything I do or did or know or knew or did not know I did not finish the video I will finish it inshallah

ryanalnaser