I was curious what it means when you have the code below. Why would this be useful?
int* x = a
The code right above declares a pointer to an int. This is used to store the pointer of a inside x. Though I'm a little unsure why we would use * in the function header such as int* function().
Code:
int* function() {
// code...
} // end of function
The code right above declares a pointer to an int. This is used to store the pointer of a inside x. Though I'm a little unsure why we would use * in the function header such as int* function().