C Programming Tutorial - 58: Pointer to an Array

preview_player
Показать описание
In this tutorial we'll see how we can make a pointer point to an array and traverse through the array using the pointer variable.
Рекомендации по теме
Комментарии
Автор

there is no need to use & symbol before arr because by default arrays are passed by reference and it will always point to the 1st element of the array

hassansyed
Автор

i am blown by your fluency in english...you are an amazing teacher asd well..love you

kimayapanash
Автор

Hi Madhur Bhatia I would like to say that I have recently discovered your channel and so far its a pretty wonderful thing you have created. I also have one comment that i believe that would make your page more effective in getting across to your audience. I believe if your able to post the coding file, it would help others to play around with the coding to see generally how each of the programing works. Thank you for all the videos

javonegift
Автор

this is how we do in compile time we can also do it dynamically by
cin>>n;
int *a= new [n];
this allocate space during run time

abhisheksah
Автор

sir what is the difference between array of pointers and pointer to array
can u plzzz shw this difference using a prgmm

chandinics
Автор

i now want to change the values of the array but keep the memory addresses. how can i do that?

dutoitvandyk
Автор

For some reason the code won't let me code "ptr=&arr" but it will let me code "ptr=arr".

davidoats
Автор

explain about (*ptr)[size] and *(ptr[size]).

raj
Автор

make video sorting this array with qsort

williamrose