Question: Write a C++ program to find the area and perimeter of a rectangle. area= length*width; perimeter=2(length+width); Note: This program should use pointers (new). You

Write a C++ program to find the area and perimeter of a rectangle. area= length*width; perimeter=2(length+width); Note: This program should use pointers (new). You have to de-allocate the memory using delete operator. Check your program that it should not have memory leaks or bad memory/cheap memory. Use valgrind to check the memory leaks. See the commands below for compiling and executing your code.
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
include using namespace std int main ... View full answer
Get step-by-step solutions from verified subject matter experts
