Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
1718627440
on Aug 12, 2025
|
parent
|
context
|
favorite
| on:
Why tail-recursive functions are loops
> You can't have a reference (aka pointer) pointing to a variable.
What?
int a; int * p = &a; ?
ramchip
on Aug 25, 2025
[–]
That's a pointer to an integer.
1718627440
on Aug 27, 2025
|
parent
[–]
Yes. You claimed you can't have pointers to a variable. I showed how to have a pointer to a variable of type integer.
ramchip
on Aug 29, 2025
|
root
|
parent
[–]
If you dereference it you get back an integer, not a variable. A variable is a name that identifies a value; the pointer points to the value, not to the name.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What?