---
title: "Discussion on \"TIL#01: Why Pointers Have Data Types\" | Hashnode"
description: "Discussion on \"TIL#01: Why Pointers Have Data Types\". Ever since started learning programming in high school and knowing C & C++, one thing has always bugged me, that is, why do pointers have data types?\nIn C & C++, when we need to declare a pointer we normally do it like this:\nint b = 10;\nint* a = &b;\n..."
url: "https://hashnode.com/posts/til01-why-pointers-have-data-types/61c9e1831de80a7fb22808da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TIL#01: Why Pointers Have Data Types](https://1tab2spaces.dhsrlab.com/til01-why-pointers-have-data-types?utm_source=hashnode&utm_medium=feed)

Ever since started learning programming in high school and knowing C & C++, one thing has always bugged me, that is, why do pointers have data types? In C & C++, when we need to declare a pointer we normally do it like this: int b = 10; int\* a = &b; ...

Dec 27, 2021 · 5 min read · 1tab2spaces.dhsrlab.com  
Updated Dec 25, 2022  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#c](https://hashnode.com/tag/c)

## Written by

[Danil Hendra Suryawan](https://hashnode.com/@danilhendrasr)

@danilhendrasr · East Java, ID

  
[View profile](https://hashnode.com/@danilhendrasr)

Software Engineer

A software engineer based in Surabaya, passionate about all things software-related.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
