From 5ac326555a63c358d1a7730c2e18a4f2d755f3d8 Mon Sep 17 00:00:00 2001 From: Sakshi-source <84678584+Sakshi-source@users.noreply.github.com> Date: Thu, 21 Oct 2021 10:06:10 +0530 Subject: [PATCH] Added c++ code for pointers --- Dynamic_Programing/Pointer.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dynamic_Programing/Pointer.cpp diff --git a/Dynamic_Programing/Pointer.cpp b/Dynamic_Programing/Pointer.cpp new file mode 100644 index 0000000..4de55b6 --- /dev/null +++ b/Dynamic_Programing/Pointer.cpp @@ -0,0 +1,33 @@ +#include +#include +#include +using namespace std; + + +void update(int *a,int *b) { + // Complete this function + + int an,bn; + an = *a+*b; + bn = *a-*b; + bn = abs(bn); + cout<>a>>b; + update(pa, pb); + + + + return 0; +}