When a pointer is passed to a function, the function receives _______? 

  • A copy of the actual data 
  • The memory address 
  • The function stored in memory 
  • A blueprint of the data
When a pointer is passed to a function, the function gets a copy of the pointer, which contains the memory address of the data. Therefore, the function can access and modify the original data through this memory address. This is different from passing the actual data, where the function would receive a copy of that data, and any changes wouldn't affect the original data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *