Andrew Bancroft 6/17/2012

Pointer Pointer #1

Read Original

This article clarifies a common confusion in C programming: the * symbol serves both as a type declaration (e.g., int *intPointer) to declare a pointer variable and as the de-reference operator to access the value at the memory address the pointer holds. Using a simple example, it demonstrates declaring a pointer, assigning it the address of an integer variable with &, and then de-referencing it to print the value. The piece emphasizes understanding the overloaded meaning of * to avoid confusion, targeting beginners learning pointers in C. It is part of a series on pointers and is purely educational, with no promotional content.

Pointer Pointer #1

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet