Pointers and arrays
Vložit
- čas přidán 19. 02. 2013
- See complete series on pointers here • Pointers in C/C++
In this lesson, we will discuss the relationship between pointers and arrays.
For practice problems and more, visit: www.mycodeschool.com
Like us on Facebook: / mycodeschool
Follow us on twitter: / mycodeschool
Thanks a lot :) this teaching model is already famous, if you have heard of Khan Academy.
There can't be a better teacher than you.......my concepts are so clear now.
what if i use int A[5] , in formal argumrnt ? is this same int* A[5] ? both are not same ?
what would be the problem if i use ?
You won't get any compilation error, but its gonna be an undefined behaviour
hyperbole lmao xD
@@suneelabbigari You don't know what's located memory location 220 in this example. It'll compile but the output will be unknown.
This is a great tutorial, thanks!
Thanks a lot for the encouragement.
This was beautifully explained; the best video I've seen on this topic! I like how you give plenty of examples and explain every single line of the examples you give clearly. Thanks from a c beginner!
*Only 18* 👇👇👇
667024.loveisreal.ru
This series of tutorials are probably the best programming tutorials on CZcams, short but extremely well explained, how it should be.
The MyCodeSchool pointer series is the best/ most accessible explanations about pointers that I have seen in the galaxy!.
*My takeaways:*
1. Data in arrary are consecutive in memory 0:13
2. Assign an array to a pointer is equal to assign the memory address of the first value in the array to the pointer 4:20
3. How to get the memory address and value of an array element 5:03
Thnx
thank you for quick recapping
chinese guy learning from indian guy? how charmingly quaint!
@@ua2894 Neighbors sharing together....Hahahaha..
The way you always link the concepts with the memory they use, makes it a whole lot clearer. that's where I always had doubts about its actual working. You are something else. Thank you!
I am ashamed of my Univ Teacher after watching these lectures. A long time nightmare is become a piece of cake.
I watched this before and let me tell you that your explaining is really amazing.This is the best explaining so far
Thank You ! sir , concepts are getting clear now.
Each and every tutorial of your is so clean and to the point.
Amazing explanations!! I hope these lectures continue to spread to many more people!
One of the best teachers I've come accross so far in my life.
Agree.
Super clear and great examples, time to watch all your videos! THANK YOU!!
Thank you very much for these lectures! Right now I'm watching these videos, typing your code alongside and taking notes; will go through this playlist one more time so the concepts sink in :)
best tutorial for pointers and arrays, each and every concept is simply explained, keep it up sir 👍👍
Thanks man for uploading these valuable lectures. These are pure GOLD..
This was great thanks! I am doing my first programming course in Computing Science and this video helps a lot
Thank you so much for this. I been having difficulty trying to understand pointers. This was really helpful.
Man your soo awesome, its finally clinking! Im gonna nail my exam tomorrow!!! Thank you.
did you nail it ?
he probably failed , why else hes afraid to confess us the result :D
Lol same. Mine is the day after tomorrow
@@poljakov13 madrasa education only fails u.
@@dhruvkaran9724 Being in VIT, I can confirm this is true.
so well explained!! give a million thumbs up if I can!! Best tutorial channel on youtube!!
im cryin i can literally feel my brain getting bigger
OMG I am falling off my chair AHAHHAHAh
damn thats crazy.. stfu
no one taught pointers and arrays concept like this... great learning experience and made the concept clear
I LOVE YOU ! LEARNNING NEW THINGS HERE!
very good tutorial, thanks! feels so nice finally understanding this...
Thank you for this course and the playlist.
Great sir!! You are providing best conceptual learning with smoothness and easiness.
One cannot be more precise than u sir . Ty very much it helped me a lot
amazing , simple , clear , and straight forward
i had never understood this clearly ,but now my all doubts are cleared.thx for that .plz upload playlist on arrays , structure and union
thank you for the subtitles
You are osm..really... I was so much scared of doing programming.. But now I am doing good in it.. Thank you 😊 😊
The series too good that I always forget to give a like before move on to next video!!
concepts and communication skill executing simultaneously....hatsoff
This Video lectures helped Me a lot. So thank you for that
basic concept but your lessons are very helpful!!! thank you!
this was so clear and helpful; thank you!
Thank you for such a wonderful video ..its really beneficial and informative ..thanks once again..
Your Lecture is Good !ThankGod Yu Saved me from Internals
Pointers are amazing man.. I love how that..just changes a variable in..void
Thanks man, u r a great teacher. Im subscribing to u now!
really good, i was very confused about the relationship between array and pointer, now its clearer
Really like this one; crystal clear!
you just made it so much easier to undertsand. THANKS
So great!!
Really good teaching!
Thanks a lot!
Damn I understood everything I need from this and ur character and array video. I was very confused from the "char *argv[]" thing.
thanks it is very nice and simple ways of teaching the difference between them keep up the good work
Thank you animesh for the explanation. :)
thank you very much for this video, it was very helpful :)
- new subscriber
Thank you for making this tutorial.
Thanks a lot..
--
you are doing excellent work..
This was very clear, but It would be a good idea to make a video about the few differences between an array and a pointer.
Thank you very much!
really excellent explanation
its very clear thank u so much....Just declaring two variable and storing in particulate address and printing the address and variable value which u could initialized
Thanks sir, your explanation is great
This is very important topic. "Equivalence" of pointers and arrays (though they are not really equivalent).
what u did is really amazing bro !!
Awesome as usual....very informative
Great tutorial!
You're my hero.
how are you such a brilliant teacher omg
this is a tremendous good video i have ever seen !!!!
Outstanding Sir... Truely thankfully
thank you so much finally pointers are clear for me .
Thank you very much my beloved friend.
Sir, you are just awesome...
Thanks for the video!
*NOTE :- Printing the address of the first array element like printf("%d", A); doesn't work in case of linux users who use build-essential.
Amazing, very very helpful :D keep the excellent work plz!
#Awesome tutorial sir😃😃😃😃😃😃
Thank you
nice one abhishek keep extending...
Fantastic! Thank you.
God bless you master......
*for anyone who needs an example for when array and pointers are used together, you can take a look at this.
The question is "arrange array in ascending/ descending order using functions"
#include
void ascending(int *p);
void descending(int *p);
int main()
{
char seq;
int a[10] = {10,2,4,6,8,1,3,5,7,9};
printf("Do you want ascending or descending sequence?(a/d)");
scanf("%c",&seq);
if(seq == 'a')
ascending(&a);
if(seq== 'd')
descending(&a);
for(int i= 0; i
pointer variable generally mentioned in ptr instead of mentioning "p"
You are so good !!!!!!!!
Thank you for your video :)
i have a question, what are the differences between
this code to view an element in an array, why would
you use one over the other
printf("%d",a[3]);
printf("%d",*(p+3));
Thank you so much sir. Video was really helpful
thanks a lot for these tutorials understood d concept of pointers for d 1st tym :D
thanks for the lesson
Thanks sir it helped a lot!!
Excellent video
U saved my life !
you did a good job!!!!
thanks for your video.
Thank you!
waooo!! this tutorial was excellent
Thank u, Helped a lot
Thank you so much!!
Thank you very much
Hi! Thanks for the lectures.
In the ed, you mentioned that you cannot directly increment the base address of an array (say for example 'A') as A++. But isn't it similar to doing A+1? And the operation A+1 works! could you explain this?
Awesome teachings ... and it is very very useful for beginners to understand the concepts easily..
Moreever the subtitles are some what not good because of the black background. We are unable to see the things behind that.. please ... make alternate..
awesome tutorial
SUPER HELPFUL
ur the man dude
May our creator bless you teacher!
Thanks for array in pointer
thank you very much
Many thanks
Thankyou so much mehn
First of all i appreciate what you are doing sir, its Great. I wrote the same codes and instructions as in the video but i didn´t get the same results though, instead of the adress allocation and values of each Array , i´m gettin the sum of the numbers and their position
the code;
#include
#include
int main()
{
int A[ ] = { 2, 4, 5, 8, 1 };
int i ;
for (i = 0; i < 5; i++);
{
printf("adress = %d
", A + i);
printf("value = %d
", *(A + i));
}
system("PAUSE");
return 0;
}