Pointers and arrays

  Рет қаралды 647,399

mycodeschool

mycodeschool

Күн бұрын

Пікірлер: 271
@mycodeschool
@mycodeschool 11 жыл бұрын
Thanks a lot :) this teaching model is already famous, if you have heard of Khan Academy.
@abhisheksingh-rd2ur
@abhisheksingh-rd2ur 8 жыл бұрын
There can't be a better teacher than you.......my concepts are so clear now.
@suneelabbigari
@suneelabbigari 7 жыл бұрын
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 ?
@venkateswarans1012
@venkateswarans1012 6 жыл бұрын
You won't get any compilation error, but its gonna be an undefined behaviour
@dharmang
@dharmang 5 жыл бұрын
hyperbole lmao xD
@FreeMayaTutorials
@FreeMayaTutorials 4 жыл бұрын
@@suneelabbigari You don't know what's located memory location 220 in this example. It'll compile but the output will be unknown.
@FreeMayaTutorials
@FreeMayaTutorials 4 жыл бұрын
This is a great tutorial, thanks!
@mycodeschool
@mycodeschool 11 жыл бұрын
Thanks a lot for the encouragement.
@lindawisebear
@lindawisebear 7 жыл бұрын
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!
@kiralosina8615
@kiralosina8615 3 жыл бұрын
*Only 18* 👇👇👇 667024.loveisreal.ru
@leixun
@leixun 4 жыл бұрын
*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
@syedhamid01
@syedhamid01 2 жыл бұрын
Thnx
@Rahulsingh-theraha
@Rahulsingh-theraha 2 жыл бұрын
thank you for quick recapping
@ua2894
@ua2894 Жыл бұрын
chinese guy learning from indian guy? how charmingly quaint!
@JulieTech
@JulieTech 6 ай бұрын
@@ua2894 Neighbors sharing together....Hahahaha..
@Kgotso_Koete
@Kgotso_Koete 7 жыл бұрын
The MyCodeSchool pointer series is the best/ most accessible explanations about pointers that I have seen in the galaxy!.
@utkarshaggarwal1631
@utkarshaggarwal1631 4 жыл бұрын
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!
@ammarm7
@ammarm7 10 жыл бұрын
Man your soo awesome, its finally clinking! Im gonna nail my exam tomorrow!!! Thank you.
@iTech1337
@iTech1337 7 жыл бұрын
did you nail it ?
@poljakov13
@poljakov13 7 жыл бұрын
he probably failed , why else hes afraid to confess us the result :D
@madjoemak
@madjoemak 6 жыл бұрын
Lol same. Mine is the day after tomorrow
@dhruvkaran9724
@dhruvkaran9724 4 жыл бұрын
@@poljakov13 madrasa education only fails u.
@peterpace3379
@peterpace3379 3 жыл бұрын
@@dhruvkaran9724 Being in VIT, I can confirm this is true.
@bamster64
@bamster64 6 жыл бұрын
This series of tutorials are probably the best programming tutorials on KZbin, short but extremely well explained, how it should be.
@whatdphak
@whatdphak 4 жыл бұрын
One of the best teachers I've come accross so far in my life.
@kensei4237
@kensei4237 4 жыл бұрын
Agree.
@mdabusayeed2305
@mdabusayeed2305 7 жыл бұрын
I am ashamed of my Univ Teacher after watching these lectures. A long time nightmare is become a piece of cake.
@SmartProgramming
@SmartProgramming 6 жыл бұрын
best tutorial for pointers and arrays, each and every concept is simply explained, keep it up sir 👍👍
@khalidben9940
@khalidben9940 7 жыл бұрын
I watched this before and let me tell you that your explaining is really amazing.This is the best explaining so far
@shivamverma9447
@shivamverma9447 3 жыл бұрын
Thanks man for uploading these valuable lectures. These are pure GOLD..
@xz7525
@xz7525 4 жыл бұрын
Amazing explanations!! I hope these lectures continue to spread to many more people!
@Submersed24
@Submersed24 8 жыл бұрын
very good tutorial, thanks! feels so nice finally understanding this...
@kevinl1080
@kevinl1080 2 жыл бұрын
This was great thanks! I am doing my first programming course in Computing Science and this video helps a lot
@palaksarawagi9290
@palaksarawagi9290 8 жыл бұрын
Thank You ! sir , concepts are getting clear now. Each and every tutorial of your is so clean and to the point.
@naboulsikhalid7763
@naboulsikhalid7763 3 ай бұрын
No doubt, best explanation of pointers and operations. thank you
@shitalunde24
@shitalunde24 4 жыл бұрын
i had never understood this clearly ,but now my all doubts are cleared.thx for that .plz upload playlist on arrays , structure and union
@vaishalijoshi7642
@vaishalijoshi7642 6 жыл бұрын
concepts and communication skill executing simultaneously....hatsoff
@somnathgarai
@somnathgarai 10 жыл бұрын
no one taught pointers and arrays concept like this... great learning experience and made the concept clear
@juannov7
@juannov7 2 жыл бұрын
Super clear and great examples, time to watch all your videos! THANK YOU!!
@suigetsuhozuki1
@suigetsuhozuki1 4 жыл бұрын
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 :)
@shalupathak6905
@shalupathak6905 5 жыл бұрын
You are osm..really... I was so much scared of doing programming.. But now I am doing good in it.. Thank you 😊 😊
@TheThelifegame
@TheThelifegame 5 жыл бұрын
amazing , simple , clear , and straight forward
@nivo6379
@nivo6379 5 жыл бұрын
Thank you for this course and the playlist.
@city5joy
@city5joy 5 жыл бұрын
basic concept but your lessons are very helpful!!! thank you!
@rahulprajapati8743
@rahulprajapati8743 5 жыл бұрын
This Video lectures helped Me a lot. So thank you for that
@mycodeschool
@mycodeschool 11 жыл бұрын
A++ is saying "A = A+1", so we are trying to modify A here. When we use (A+1) in an expression, we never use it in a manner that A is modified. The whole concept is that if A is an array name, it works like pointer but it is not pointer. It is array. If you do something like "int *ptr = A", A returns a pointer that is collected in ptr and now you can do ptr++.
@MrRohit103
@MrRohit103 5 жыл бұрын
Array is a constant pointer because its job is to maintain the base address( You know, an array would be in a serious trouble if it loses its base address).
@sachinnihalani8150
@sachinnihalani8150 6 жыл бұрын
One cannot be more precise than u sir . Ty very much it helped me a lot
@deveshmeena5481
@deveshmeena5481 3 жыл бұрын
you just made it so much easier to undertsand. THANKS
@jeelkumarbaraiya5109
@jeelkumarbaraiya5109 5 жыл бұрын
Great sir!! You are providing best conceptual learning with smoothness and easiness.
@faithdame4823
@faithdame4823 7 жыл бұрын
Thank you so much for this. I been having difficulty trying to understand pointers. This was really helpful.
@aadypillai5808
@aadypillai5808 4 жыл бұрын
im cryin i can literally feel my brain getting bigger
@torebektoregozhin4626
@torebektoregozhin4626 4 жыл бұрын
OMG I am falling off my chair AHAHHAHAh
@aadypillai5808
@aadypillai5808 3 жыл бұрын
damn thats crazy.. stfu
@gerardo.arroyo.s
@gerardo.arroyo.s 3 ай бұрын
Thank u for explaining this! Wow, this was 11 years ago? 2013? Impressive
@tamilmaranc
@tamilmaranc 8 жыл бұрын
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
@sajidmohammad5947
@sajidmohammad5947 3 жыл бұрын
*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
@thiagaodavez5465
@thiagaodavez5465 Жыл бұрын
really good, i was very confused about the relationship between array and pointer, now its clearer
@suigetsuhozuki1
@suigetsuhozuki1 4 жыл бұрын
This is very important topic. "Equivalence" of pointers and arrays (though they are not really equivalent).
@thomash7247
@thomash7247 Жыл бұрын
Thanks sir, your explanation is great
@AbhishekSingh-yr5uq
@AbhishekSingh-yr5uq 6 жыл бұрын
thanks it is very nice and simple ways of teaching the difference between them keep up the good work
@jumaelahmed9995
@jumaelahmed9995 3 жыл бұрын
May our creator bless you teacher!
@thsdsyt
@thsdsyt 4 жыл бұрын
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!
@ash_engineering
@ash_engineering 9 жыл бұрын
Thank you for such a wonderful video ..its really beneficial and informative ..thanks once again..
@OmarChida
@OmarChida 6 жыл бұрын
I LOVE YOU ! LEARNNING NEW THINGS HERE!
@rakeshreddy9417
@rakeshreddy9417 7 жыл бұрын
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..
@justinli19901027
@justinli19901027 8 жыл бұрын
so well explained!! give a million thumbs up if I can!! Best tutorial channel on youtube!!
@SravanKumar-us5lw
@SravanKumar-us5lw 6 жыл бұрын
Your Lecture is Good !ThankGod Yu Saved me from Internals
@himanshipatil911
@himanshipatil911 6 жыл бұрын
really excellent explanation
@somentebruno
@somentebruno 7 жыл бұрын
thank you for the subtitles
@enkhnyambattulga9351
@enkhnyambattulga9351 3 жыл бұрын
how are you such a brilliant teacher omg
@07bhas
@07bhas 11 жыл бұрын
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?
@blandiblue
@blandiblue 4 жыл бұрын
Thank you very much my beloved friend.
@bencroacademy
@bencroacademy 6 жыл бұрын
Pointers are amazing man.. I love how that..just changes a variable in..void
@linf31337
@linf31337 8 жыл бұрын
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));
@alialhilo5696
@alialhilo5696 4 жыл бұрын
what u did is really amazing bro !!
@bhzo2010
@bhzo2010 11 жыл бұрын
Thanks a lot.. -- you are doing excellent work..
@pinkipandey159
@pinkipandey159 6 жыл бұрын
Outstanding Sir... Truely thankfully
@tamilmaranc
@tamilmaranc 8 жыл бұрын
good explanation more over when you store the arrays values the address should serial based i mean to say like 200,201,202,203 like that ...since arrays gives sequetial based address storage but you had mentioned like 200 204 2014 like that ...
@wcxjordan9859
@wcxjordan9859 8 жыл бұрын
So great!! Really good teaching!
@corporalwaffles
@corporalwaffles 8 жыл бұрын
Excellent video
@kaizhang9530
@kaizhang9530 6 жыл бұрын
The series too good that I always forget to give a like before move on to next video!!
@brettjay
@brettjay 9 жыл бұрын
Really like this one; crystal clear!
@shrinathdakare3725
@shrinathdakare3725 8 жыл бұрын
You are too good.Thank you very much.
@aspireshekar
@aspireshekar 8 жыл бұрын
nice one abhishek keep extending...
@junot9007
@junot9007 6 жыл бұрын
this was so clear and helpful; thank you!
@melancholiethelab9478
@melancholiethelab9478 6 жыл бұрын
Thank you for making this tutorial.
@ShauryaChawlaprayforplagues
@ShauryaChawlaprayforplagues 8 жыл бұрын
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.
@AdityaChandak287
@AdityaChandak287 7 жыл бұрын
Great tutorial!
@mastercode7851
@mastercode7851 4 жыл бұрын
thanks for the lesson
@ryokajimosensei2780
@ryokajimosensei2780 3 жыл бұрын
Thank you indian tech support guy
@sharonslibrary
@sharonslibrary 7 жыл бұрын
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; }
@devikasathyan1333
@devikasathyan1333 4 жыл бұрын
sir, can the variable name start with uppercase letter??? excellent video sir
@rakshitks7850
@rakshitks7850 5 жыл бұрын
Awesome as usual....very informative
@yashaswiification
@yashaswiification 10 жыл бұрын
awesome tutorial
@kartikpanicker9275
@kartikpanicker9275 8 жыл бұрын
God bless you master......
@pjliu6329
@pjliu6329 2 жыл бұрын
thanks for your video.
@andyandrw
@andyandrw 7 жыл бұрын
Very good video, I only have one question. Why you can use *myArray to point to the 1st value, but you can't *(myArray[3])? I know that for this you would use myArray[i], but wondered why is the reason behind this =)
@jbbotha
@jbbotha 5 жыл бұрын
Fantastic! Thank you.
@epochalanaxagorasworldpeac8053
@epochalanaxagorasworldpeac8053 6 жыл бұрын
You are so good !!!!!!!!
@mustang...
@mustang... 6 жыл бұрын
What is the difference between A and &A[0]? I saw some answers on stackoverflow that they have different types( like sizeof gives different results), but it's still unclear how exactly it works if they point to the same address.
@taymurahmed7119
@taymurahmed7119 9 жыл бұрын
Sir, you are just awesome...
@tamilmaranc
@tamilmaranc 8 жыл бұрын
pointer variable generally mentioned in ptr instead of mentioning "p"
@maniabedii2574
@maniabedii2574 9 ай бұрын
Thank u, Helped a lot
@XurshidDev
@XurshidDev 10 ай бұрын
Thank you very much
@RokktimBiswas07
@RokktimBiswas07 8 жыл бұрын
Thank you animesh for the explanation. :)
@XProgramerTV
@XProgramerTV 8 жыл бұрын
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.
@praxisdev1884
@praxisdev1884 7 жыл бұрын
You're my hero.
@meshuz398
@meshuz398 2 жыл бұрын
Thank you!
@danieleke1400
@danieleke1400 8 ай бұрын
Thankyou so much mehn
@Shiva-zy7jq
@Shiva-zy7jq 6 жыл бұрын
Thank you so much sir. Video was really helpful
@CODINC
@CODINC 8 жыл бұрын
Thanks man, u r a great teacher. Im subscribing to u now!
@medjefe2255
@medjefe2255 5 жыл бұрын
thank you so much finally pointers are clear for me .
@bamokinamoandadestin7888
@bamokinamoandadestin7888 5 жыл бұрын
you did a good job!!!!
@tanisha6948
@tanisha6948 7 жыл бұрын
Sir,can u please explain why we did p++; and not a++; they both store the address of variables as a also refers to the address of the first element of the array.
@sakibjobaid6667
@sakibjobaid6667 7 жыл бұрын
this is a tremendous good video i have ever seen !!!!
@hemvjay
@hemvjay 8 жыл бұрын
What value here A refers when we do the operation (A+i ),*(A+i)
@chiragnandaniya3133
@chiragnandaniya3133 6 жыл бұрын
Thanks sir it helped a lot!!
@rvlabaji
@rvlabaji 8 жыл бұрын
#Awesome tutorial sir😃😃😃😃😃😃 Thank you
Arrays as function arguments
12:54
mycodeschool
Рет қаралды 378 М.
why do void* pointers even exist?
8:17
Low Level
Рет қаралды 376 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 27 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 84 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 12 МЛН
1.4 Pointers and Arrays | Data structure Tutorials
25:05
Jenny's Lectures CS IT
Рет қаралды 612 М.
Character arrays and pointers - part 1
14:41
mycodeschool
Рет қаралды 550 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 317 М.
you will never ask about pointers again after watching this video
8:03
Pointers and 2-D arrays
12:19
mycodeschool
Рет қаралды 484 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
array vs &array Pointers Difference Explained | C Programming Tutorial
17:38