+ 1
what is the meaning of "->" explain in simple words data structure?
"->" this operator is being used everywhere in dsa what does it means
2 ответов
+ 2
The arrow operator ( -> ) is used to access the elements of a struct or a union when you have a pointer to such struct or union.
(pointer)->(variable)
If you don't use a pointer to a struct or union, then the dot operator ( . ) is used instead.