Question: Hello, this is for programming in C++ . Below is the assignment, it deals with pointers and I am a bit lost on them so
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
