Skip to content
Welcome to Coder's Den
  • Live Instructor
  • Products
  • Privacy Policy
  • About Us
Welcome to Coder's Den
  • About Us
  • Contact Us
  • Live Instructor
  • Privacy Policy
  • Products
    • A1 Canvas
    • Noksha

Dangling and Wild Pointers

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ Over this whole series we’ve learned to love pointers ─ how they hold addresses, walk arrays, reach into objects, manage memory, and even name members in the abstract. Today we turn the lamp on the dark side 🌑. Every scary story you’ve heard about C++ ─ mysterious crashes, corrupted data, “it worked […]

Dangling and Wild Pointers Read More »

Pointers to Members

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we met the this pointer ─ the hidden pointer that lets an object refer to itself. We pushed our house picture nicely along: an object is a house, and this is the card by the door holding its own address. Today we take that one curious step further

Pointers to Members Read More »

this Pointer

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we learned how to reach into an object through a pointer using the arrow operator ->. We pictured an object as a house 🏠, its members as rooms, and a pointer as the address slip that gets us there. Today we turn that idea inward and ask a

this Pointer Read More »

Member Access with the Arrow Operator

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we sorted out NULL vs nullptr ─ how to say “this pointer leads nowhere” in a clean, type-safe way. Along the way we leaned on a little picture of address slips and a mailroom 📬. Today we pick that picture right back up ─ because now we finally

Member Access with the Arrow Operator Read More »

NULL vs nullptr

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we learned how to lock our pointers down with const ─ freezing either the value a pointer looks at, the address it holds, or both. We spent that whole post deciding what a pointer is allowed to change. Today we ask a different question ─ what if a

NULL vs nullptr Read More »

Const Pointers

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we peeled the label off our pointers and met the mysterious, typeless void pointer 📦 ─ a pointer that can hold the address of anything, but knows the type of nothing. If we haven’t read the earlier posts in this series, it’s worth going through them first ─

Const Pointers Read More »

Void Pointer

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we stacked pointers on top of pointers and conquered that dizzying double asterisk ** 😵‍💫. In this post we are gonna learn about ─ the mysterious, “typeless” void pointer 😉 If you haven’t read the earlier posts in this series, please go through them first ─ especially the

Void Pointer Read More »

Pointers to Pointers

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we learned about smart pointers ─ the modern, safe way to handle dynamic memory. At the very end, I promised we’d look at something that sounds a little dizzying ─ pointers to pointers 😵‍💫 If you haven’t read the earlier posts in this series, please go through them

Pointers to Pointers Read More »

Smart Pointers

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we learned dynamic memory allocation ─ how new grabs memory from the heap and delete gives it back. We also met two scary dangers ─ the memory leak (forgetting to delete) and the dangling pointer (using memory after delete). At the very end, we got a little taste

Smart Pointers Read More »

Dynamic Memory Allocation

Leave a Comment / Pointers / Shah Md. Imran Hossain

Hi everyone ✋ In the previous post we learned the fascinating relationship between pointers and functions ─ how a function has an address, and how we can pass behavior around like data. If you haven’t read the earlier posts in this series, please go through them first ─ today everything we’ve learned about pointers finally

Dynamic Memory Allocation Read More »

1 2 … 4 Next →

Recent Posts

  • Dangling and Wild Pointers
  • Pointers to Members
  • this Pointer
  • Member Access with the Arrow Operator
  • NULL vs nullptr

Categories

  • C++ STL
  • Pointers
  • Tools
  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2026 Welcome to Coder's Den | Powered by Astra WordPress Theme