question3

question3 - int main double*pa=new double getArea(10,40,pa...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> using namespace std void getArea(double base, double height, double *areaPtr) { *areaPtr=0.5*base*height
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } int main() { double *pa=new double getArea(10,40,pa) cout<<"The area is"<<*pa<<endl }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online