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?
In C & C++, when we need to declare a pointer we normally do it like this:
int b = 10;
int* a = &b;
...
1tab2spaces.dhsrlab.com5 min read