From df25b6a96ec4069cbdd30ded3374a9d17a2812eb Mon Sep 17 00:00:00 2001 From: nirmay0503 <19ucs061@lnmiit.ac.in> Date: Tue, 22 Oct 2019 23:50:12 +0530 Subject: [PATCH] I added pointer.cpp --- pointer.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pointer.cpp diff --git a/pointer.cpp b/pointer.cpp new file mode 100644 index 0000000..d207556 --- /dev/null +++ b/pointer.cpp @@ -0,0 +1,16 @@ +#include + +void update(int *a,int *b) { + // Complete this function +} + +int main() { + int a, b; + int *pa = &a, *pb = &b; + + scanf("%d %d", &a, &b); + update(pa, pb); + printf("%d\n%d", a, b); + + return 0; +}