1. Engineering
  2. Computer Science
  3. hello this is for programming in c below is the...

Question: hello this is for programming in c below is the...

Question details
Hello, this is for programming in C++. Below is the assignment, it deals with pointers and I am a bit lost on them so please include comments when you can. Thank you very much.

Creating A Program with Pointer Functions Create a program with filename ptrFunc.cpp that contains the two short functions described below. In your main function, declare and initialize two pointer variables that point to double data, and use these variables to test your functions. 1. Write a boolean value-returning function that takes two pointer variables, ptr1 and ptr2, as parameters. Both variables point to double data. The function should return true if the values in the pointed-to variables are identical, and false otherwise. 2. Write a boolean value-returning function that takes two pointer variables, ptr1 and ptr2, as parameters. Both variables point to double data. The function should return true if both variables represent the same address in memory. That is, they point to the same variable. Your function should return false otherwise.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution