Тёмный

Arrow Operator For Pointers To Structs | C Programming Tutorial 

Portfolio Courses
Подписаться 232 тыс.
Просмотров 42 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@mb59621
@mb59621 Месяц назад
Your teaching style delivers maximum knowledge in minimum time .
@CoolModderJaydonX
@CoolModderJaydonX 5 месяцев назад
Keep in mind, when using malloc on something, use free to free the allocated memory when you no longer need it.
@iwannapressit6886
@iwannapressit6886 Год назад
thank you showing both ways to point to something!
@PortfolioCourses
@PortfolioCourses Год назад
You're very welcome! :-)
@thesuperiorman8342
@thesuperiorman8342 Год назад
Thank you so much. Well presented and to the point 👍
@PortfolioCourses
@PortfolioCourses Год назад
You’re very welcome, I’m glad you enjoyed it! :-)
@abdulsametaybaz3321
@abdulsametaybaz3321 2 года назад
Thanks your explaining and speaking so clear I can understand easily
@PortfolioCourses
@PortfolioCourses 2 года назад
You're welcome Abdulsamet! :-)
@pixelgamesSARLS
@pixelgamesSARLS 6 месяцев назад
So well explained! Thank you
@mr.luxxyandreneo5168
@mr.luxxyandreneo5168 Год назад
Nice explanation
@PortfolioCourses
@PortfolioCourses Год назад
I’m glad you enjoyed the explanation! :-)
@michasmykowski5753
@michasmykowski5753 6 месяцев назад
Thanks man You really made my day
@LexElls
@LexElls 2 года назад
Thanks for supplying the code! That's awesome
@PortfolioCourses
@PortfolioCourses 2 года назад
You're welcome Lex! :-D
@dimpe5038
@dimpe5038 Год назад
Really nice explanation, thanks!
@PortfolioCourses
@PortfolioCourses Год назад
You’re welcome, I’m glad you enjoyed the explanation! :-)
@zattirizortzort486
@zattirizortzort486 Год назад
Very well explained. Thanks
@PortfolioCourses
@PortfolioCourses Год назад
You’re welcome Ulas, I’m glad you enjoyed the explanation! :-)
@mementomori7160
@mementomori7160 8 месяцев назад
I know it's old but, why can't the compiler jsut dereference the pointer first? Do you know if there is a reson for that? That way they wouldn't need a completely new operator to exist
@ladyville3
@ladyville3 8 месяцев назад
It would do it all the time, even when you don’t want it to?
@jeremykhoo5127
@jeremykhoo5127 6 месяцев назад
Sometimes you want to change the address of the pointer and not the value You have an address to a John's house. Set to Mary A postman subroutine has a pointers to "delivery for" it is set at adress: John's house Person: Marry So it means you will go to John's house and deliver the package to Mary who lives there If you always dereference that means you can only deliver to the people in John's house (Mary and John). You cannot deliver to anyone in Clements' house ie you can only change the value, you cannot change the address
@tictac3361
@tictac3361 23 дня назад
Do you or does anyone else know if I should use the dot operator or arrow operator if I am dealing with a structure array? I did something like this (*pointerName)[index ].elementName
@elisha502
@elisha502 Год назад
if im using an arrow how do i scan into those varibale?
@ratdude010
@ratdude010 9 месяцев назад
Magic, you need to call Harry Potter. I'm actually wondering the same thing.
@EngineeringNibbles
@EngineeringNibbles 25 дней назад
Useful!
@FELIPEGABRIELMARQUESDOSSANTOS
@FELIPEGABRIELMARQUESDOSSANTOS 8 месяцев назад
thanks man. I finally get it 😅
@avixx
@avixx 7 месяцев назад
Love this!
@marbles5590
@marbles5590 2 года назад
Thank you for this video... although I had problems in my code. It says 'cannot convert int* to Point'. I don't have any problems using the arrow operator and such, only this (*p3), p3-> thing after dynamically allocating using malloc().
@PortfolioCourses
@PortfolioCourses 2 года назад
You're welcome! :-) And I'm not sure why that would be without seeing the code, can you maybe post your code in a comment here so I can look at it? I've posted the code in this video here: github.com/portfoliocourses/c-example-code/blob/main/arrow_operator.c.
@marbles5590
@marbles5590 2 года назад
@@PortfolioCourses hello, I used another IDE and the code works. My code is just the same as yours. Maybe this error has something to do with my settings...
@Quasarsoft
@Quasarsoft Год назад
​@@marbles5590 I suppose you are using c++ compiler . You need to change your main.cpp to main.c
@marbles5590
@marbles5590 Год назад
@@Quasarsoft ty for that but i have already solved the prob months ago. Still there are times i get used to using the devc++ compiler and forgot to change it to .c 😅
@SameerAhmed-wf8yf
@SameerAhmed-wf8yf 6 месяцев назад
which IDE are you using?
@hicg
@hicg Год назад
hello from Brasil. thanks!
@PortfolioCourses
@PortfolioCourses Год назад
You're welcome! :-) And hello from Canada!
@erennkose
@erennkose Год назад
Thanks for these videos i hope i can pass my exams.
@PortfolioCourses
@PortfolioCourses Год назад
You're welcome Aaron, and good luck on your exams! :-)
@awekeningbro1207
@awekeningbro1207 9 месяцев назад
when we use char data types for this, it doesnt work.
@radomeditv
@radomeditv Год назад
clear in very helpful
@PortfolioCourses
@PortfolioCourses Год назад
Awesome, I’m glad to hear that! :-)
@iuseyoutubealot
@iuseyoutubealot Год назад
what text editor r u using
@PortfolioCourses
@PortfolioCourses Год назад
In this video I am using Xcode on a Mac. 🙂
@ionguzun3952
@ionguzun3952 2 года назад
Thank you!
@PortfolioCourses
@PortfolioCourses 2 года назад
You’re welcome Ion! :-)
@aravinthr607
@aravinthr607 Год назад
Thank you sir ...
@PortfolioCourses
@PortfolioCourses Год назад
You're welcome! :-)
@pirasannanmusicals
@pirasannanmusicals 2 месяца назад
what text editor u r using
@sagartalole15
@sagartalole15 2 месяца назад
X code on mac
@joaco.
@joaco. Год назад
You are godlike.
@PortfolioCourses
@PortfolioCourses Год назад
Aww haha thank you very much for the support. :-)
@hakant.5806
@hakant.5806 9 месяцев назад
👍
@PortfolioCourses
@PortfolioCourses 9 месяцев назад
Thanks! :-)
Далее
goto Statements | C Programming Tutorial
4:46
Просмотров 17 тыс.
struct Basics | C Programming Tutorial
24:44
Просмотров 144 тыс.
Физика пасты Карбонара 🧪🔬
00:57
Гаджет из даркнета 📦
00:45
Просмотров 140 тыс.
I tricked MrBeast into giving me his channel
00:58
Просмотров 18 млн
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 318 тыс.
God-Tier Developer Roadmap
16:42
Просмотров 7 млн
Pointers and dynamic memory - stack vs heap
17:26
Просмотров 1,4 млн
When to use the Arrow Operator in C and C++
5:43
Просмотров 38 тыс.
Introduction to Pointers | C Programming Tutorial
24:42
why do void* pointers even exist?
8:17
Просмотров 378 тыс.
Function Pointers | C Programming Tutorial
18:31
Просмотров 64 тыс.