Académique Documents
Professionnel Documents
Culture Documents
Reinforcement 4.3
give an algorithm that uses tail recursion to convert every element in
an integer array A into its absolute vale.
*/
#include <iostream>
#include <cmath>
using namespace std;
}
}
int* Array;
int size;
int val;
absolute(Array,size);
for (int i =0; i< size; i++)
{
cout << "their absolute values are " <<Array[i] <<endl;
}
Note:
Disclaimer:
The question presented above is the property of john wiley& sons inc. However the code is
solely a humble effort from my side…
Have fun!
If you have any comments please do contact me. My code is open for critique and review.