Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The emphasis with 'int *x' is that the variable is no longer really a variable anymore. It is a pointer to your variable. It doesn't really have anything to do with the type.


Yes it is still a variable, a variable of type int* , not int. Which can be returned by a function that returns type int* or type casted int* . Variables of type int are assigned numbers, while variables of type int* are assigned memory addresses.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: