Structure Pointer and Arrow Operator | C Language Tutorial

preview_player
Показать описание
In this tutorial you will learn about the Structure Pointer and Arrow Operator in C Programming language.

Just like the way a Pointer contains the address of another variable, a Structure Pointer can contain the address of another structure variable.

we can get the address using the & ( address of operator ).

To access the members of a structure variable using the structure pointer we use the arrow operator. It is also called as structure pointer operator.

Our Website

Social Media
Рекомендации по теме
Комментарии
Автор

I had seen videos ranging upto 1 hour to understand stucture pointer and arrow operator, your 8:39 minutes were the ones to Thanks a

yourfriend
Автор

Pointer to Struct is actuakky a fairly complicated topic. But your simplistic way of explanation made it pretty simple. Thx a lot.

subramanyack
Автор

That was a pleasure to listen to. Thank you. Made it very clear and simple to understand. Great work!!

tulumakonnen
Автор

Thanks for the video. Helped a lot in understanding about this operator.

adityashrivastava
Автор

Very simple explanation. Thanks brother.

ambiguous_gee
Автор

Thanks a lot. explained so easily with simple examples, perfect!

tobiasschraner
Автор

thank you very much I was looking for this arrow operator . you earned my sub

godofkings
Автор

thankyou sir very clear explanation! -new subscriber :)

kanishkaaswani
Автор

Thanks for sharing, you video teachs me a lots.

puripatratanaarpa
Автор

Why are you saying to dislike come on man no one can dislike it was the perfect explainationnn thankssss dudeee!!

MohdWaris-uehy
Автор

Hi, Nicely explained. Thanks a lot. I have a question. How does pointer to a class or a struct works ? I mean, I know that a pointer to a string is the address of the first character and computer can read the continuous memory blocks until it finds the null character. So how does this works in the case of a class pointer or a struct pointer ?

kcvinu
Автор

Means --> arrow operator and (*__). Member both are for same use right ?

learncseasily
Автор

Instead of age if we apply operations on name it gets error lvalue required

sahilthakur
Автор

ptr -> age = 200 works but why ptr -> name = AnilD ; doesn't work ?? We can change int value but not string .. how to change that ?

debjitdatta
Автор

Can we change the name "Anil" like

ptr->name="Name";

or it is an error;

_Shrek
Автор

The reason why I watched this video is
Because of thumbnail.
I was wondering about => operator
But it wasn't there
Is it a clickbait? 🤔

nandalala
Автор

What if we use
Void main()
Instead of,
Int main()

randoms
Автор

Sir so there is no difference between -> and * atall? They both have the exact same purpose.. ?

mithungopinath
Автор

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

ryanalnaser
Автор

Ok im not interested in C programing rather than cpp but i just came hoping for 1st comment haha

OG_CK