Arrow Operator with Pointers to Access Structure Members | CPP Programming Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn how to use arrow operator with pointers to access structure members with example.
.
You will learn how to declare a pointer to store the address of a structure variable, how to access the members using pointer, what is arrow operator in detail with examples.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

You've saved my life, I have a test in 9 hrs. This is the only video that explains it nicely

davidsteere
Автор

I like your tutorial videos so far! You don't jump to fast and your pronunciation has improved! 

CindyK
Автор

one of the greatest series right now of cpp

anshpandey
Автор

Thankyou for your explanation. Very Useful.

muhammadadzani
Автор

Thankkksss I was stuck on arrow pointers for weeks and I FINALLY understood it

veritas
Автор

My next favourite letter "YaM" ... I won't get used to this...this will always be fun :) .Regards Awesome Tutorial. Thanks :)

laureven
Автор

hey sir, i have gone through all the videos for c++, all are easy to understand, can u please help me with all the simple to difficult programs in c++, which a interviewer can ask?

neelamsati
Автор

Who the hell disliked the video?
Itne acche se to samjhaya hai agar fir bhi nahi samjha to chood do yaar programming.

kiranprasad
Автор

I am confused as to why you are not referring to the roll number using "anil.rollno" and to the sex using "anilptr" for your cout statements.
So, in other words why isn't it simply as below:

cout << anilptr -> sex = 'm';
cout << anil.rollno = 1234;

tarunnallur
Автор

You're the best, you know that??

taasomafata
Автор

Thank you, I use to think this operator was as foreign as you.

vincentpeppard
Автор

sir how anilptr-> rollno prints as 1234 because we havent declared it in the variables ... we hav only initialized anil-> sex ='m' and anil.rollno as 1234 how the both got interchanged ??

sunguru
Автор

you can also create video tutorial for c++ graphics plz

selvanadar
Автор

I'm sorry but I lost it when you typed out anil.sex

jackgrothaus
Автор

Will the same code work if anilptr=new student

niharikagoulikar
Автор

can u pls explain how structures are stored in memory, because if 1 type datatypes are stored in a single address, how are structures stored?

tekkitgods
Автор

soo there is no difference between them? i can use both ?

willyrh
Автор

Anil when I use the -> operator it crashes my program for some reason

konstantinosdimitropoulos
Автор

sir in my program it was showing error that "conversion from 'char' to non scalar type 'student' required..help me

Harshgupta-wzbs
Автор

#include<iostream>
using namespace std;
struct student
{
int roll;
int marks[5];
} ;
int main ()
{
int i, j, k;
student o[5];

for(i=0;i<5;i++)
{
cout<<"Enter the roll no. of student "<<i+1<<endl ;
cin>>o[i].roll;

for(j=o;j<5;j++)
{
cout<<"Enter the marks of student of subject "<<j+1<<endl;
cin>>o[j].marks;
}
}
for(i=0;i<5;i++)
{
cout<<"The roll no of student
for(j=o;j<5;j++)
{
cout<<"And his marks in subject "<<j+1<<"are "<<o[j].marks<<endl;
}
}
return 0;
}



sir,
is their any error in this program?