C Programming Tutorial – 44 – Arrays and Pointers

Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts


Patrascu Lucian says:

Turn Magnifier On

Bikash kumar jha says:

The font size is very small , so it is hard for me to see the lines.

ManiProgrammingAndAnimation says:

Awesome lesson! I have an example of how to use pointers to find elements in arrays on my channel if anyone needs help!

Muhammad Zafar says:

It really helped (watching twice), you are cool ! { NAPSTER }

Anthony Sim says:

I thought the first address was the location of the value 7, but the first address is meatBalls? Confused.

CIT-Zebedee Bolambao says:

this is awesome!!!

ZY J says:

where is the forum??

Naalein Grohiik says:

Those meat balls man

Tim Fleckenstein says:

your tutorials are a bit like game of thrones.

I just wanna watch the next episode as soon as the current is finished

steve frt says:

Thanks you so much

yerrapotu kiran says:

int bro[2]={4,8,12};
printf(“n brocode: %p n “, bro);
printf(“bro-tip: %d n, *bro);
printf(” No of times bro-zoned: %d n “, *(bro+2));

u know the result

Kristine Bunnell says:

Do you think maybe you could have the video get closer to the code?
I was trying to follow along using Visual Studio, but the text is so small I have to continue putting it in fullscreen and going back and forth.

Wahid Hamidy says:

i realized that u really try hard to explain this vid in an appropriate way for ur vid followers to catch something from it
that means a lot to me, thanks alot
keep it up

Philip Segerfast says:

Well, this comment is quite late, but if you want to have bigger text, and if you’re on a Windows computer, you could use the magnifying glass :)

For me, it’s Win+U and then click on the magnifying glass to the left (Windows 10)

Na Li says:

Great lecture one after another.

HWQ Wayne says:

You are the best. Professors show have felt shame.

Guitarheroant says:

I already got the idea ! You just want to show us other way to see the values of an array without use the for cycle!

Just like this: (advantege of the acumulator i)

int meatBalls[5] = {7, 9, 49, 21, 3};
int i = 0;
while(i < 5) { printf(“*(meatBalls[i]) = %d”, *(meatBalls + i)); i++; }

Gabi Galer says:

Does anyone know why when he printed *meatBalls as a pointer (%p) it showed a bunch of 0s followed by the value of *meatBalls as an integer (%d)?

printf(“meatBalls t %p”, *meatBalls) = 00000000007;

printf(“meatBalls t %d”, *meatballs) = 7;

roboecto says:

“If you watch this tutorial twice then you probably are gonna understand…”
But if I watch again I’ll hear the same comment and get stuck in an infinite loop! XD

Mihaela Costea says:

i cant follow your tutorials because the sie of what you’re writing is too small!

Submersed24 says:

This makes computer science so fun. I cant stand lectures with no personality, very uninspiring. These vids are the best!

Osama Zahid says:

I was having some serious problems with pointers and stuff before i saw your videos!
Thank you so much man! You’re doing an amazing job here!

Parth Yagnik says:

try typing for(int i = 0; i <5; i++){

printf(“n *(meatBalls+%d) tt %d n”,i, *(meatBalls+i));
insted of printf(“n *(meatBalls+2) tt %d n”, *(meatBalls+2));
it will supper blow your mind.

newmagicfilms says:

I hope youtube will make you a statue

Phea utube says:

thank bucky

Ngọc Thành Đào says:

Thanks Bucky so much about this lesson :)

Rbt618 H. says:

I am trying to store an int and a string in an array – didn’t work. So I created two arrays one for each and tried putting pointers to each in a third array – – a whole bunch of errors. Q.) is there any way I can do this.I need to story two ints the coordinates of an object … the int X, int Y and the object or it could be a name – string. I am not very advanced in C++ but I hope there is something you can comeup with that I can understand.

kishor krish says:

not visible

王鴻文 says:

I’ve never heard so many meatballs in a day before

Tarun Ramakrishnan says:

Super! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

RandTheRand says:

once it’s dereferenced does that mean the array doesnt exist anymore?

Morten Karlsen says:

Thanks for all of these tutorials i really appreciate it!
I think you are very easy to understand. And that you are great at teaching!
it was perfect brush up videos for me

TheMarvpaul says:

Thank you for this outstanding tutorial!

Jabberwocky says:

OMG! So instead of writing &test_array[0] you can just write test_array! And instead of writing test_array[0] you can write *test_array! That is so incredibly useful, Mind = blown!

Ashutosh Kaushik says:

just watch this video in 144p……..

Matus Dubrava says:

newboston many thanks to you 😉 A lot of your tutorials refreshed me, and pointers was perhaps one thing which I was not able to do at university. Because boring theory without practice. So that time I made myself a sokoban game , I think without pointers but they needed it there, I sent my assignment after day d, should be for 0 it was 4/5 I did that on my own , and I loved it.
Now I think this is the core puzzle I also needed to go with deep understanding. Thank you for your time and very nice explanations 😉 and keep up good work 😉 you are my inspiration :)

Tiara Rozed says:

do zoom in. i need my eyes to see what is going on.

yatharth Thakur says:

can we implement vector using c language…..if yes….can u explain it?

James Heck says:

meatball zero

Vanquisher Azzinoth says:

Guys he probably knows that the size of sight is not good and he should’ve probably zoomed in but now it’s late. Please use windows key + (+ key) and you can zoom on your own, its better than the default.

Danjoker says:

Is this a tutorial for ants?

VideosOfEarth says:

This is great, but I have one query:

In the above example, we saw:

Address of meatBalls[0] = 0028FEF8 = meatBalls
Address of meatBalls[1] = 0028FEFC

So, it means that the integer variable requires 4 bytes of consecutive memory.

I understood properly till this point.

How come *(meatBalls+2) points to the next to next INDEX instead of the actual MEMORY address?

Isn’t *(meatBalls+2) supposed to point to 0028FEF8 + 2 = 0028FEFA? Why did it jump 2 extra memory addresses higher to 0028FEFC??

Again, in other terms, I thought

*(meatBalls+2) = *(0028FEF8 + 2) = *(0028FEFA) != meatBalls[1]

Can you please tell me where I am going wrong?

Harsh Sharma says:


Shahriar Chowdhury says:

meatBalls+2 for dark souls 4 plz

Seema Pradhan says:

I need a magnifying glass to read the tiny text.. 😛
But the video is always, GREAT!

ZY J says:

how many tutorial videos are there totally?

shizyninjarocks says:

Please zoom in. My eyes are achy.

Owen Tan says:


Naman Kumar Garg says:

is there a difference between these two statements:1. * pTuna 2. *pTuna
one is with space and the other is without

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours