Issue
Does Kotlin have pointers? If yes,
How to increment a Pointer?
How to decrement a Pointer?
How to do Pointer Comparisons?
Solution
It has references, and it doesn't support pointer arithmetic (so you can't increment or decrement).
Note that the only thing that "having pointers" allows you is the ability to create a pointer and to dereference it.
The closest thing to a "pointer comparison" is referential equality, which is performed with the ===
operator.
Answered By - cha0site
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.