![]() So, what is a double pointer? Well, if a regular pointer is to refer to an object in memory, then a double pointer is a variable that points to another pointer which in turn, points to an object in memory.Įnter fullscreen mode Exit fullscreen mode But as you learn more, you start to feel confident in your new understanding of anything you desired to conquer. Like everything else in life that is new or foreign, people feel awkward and uneasy even just slightly at the prospect of facing something they have never encountered before. ![]() Upon seeing a double pointer, a beginner begins to shift uncomfortably, sweat running down their forehead all the way to their chin. ![]() This means, essentially, pointers are just fancy integers. They are a numeric value and when outputted to the console they are usually presented in hexadecimal. In C and other languages like C++, a pointer is something that holds the memory address of an object. Once beginners start to grasp the concept and applicability of pointers, another wave of terror strikes deep into their hearts: double pointers.īefore moving on any further, let's recap what a pointer is. ![]() But, it is crucial to understand pointers as it is a useful tool and any project bigger than a "Hello, World" program will have pointers. At first glance, there doesn't seem to be much usefulness in using them. One source of confusion among new C programmers is pointers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |