From 9b74deeba41393e0ce0b96dedcc27530d8ad3e7c Mon Sep 17 00:00:00 2001 From: e1enazdravkoska <119056159+e1enazdravkoska@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:04:48 +0100 Subject: [PATCH] Create pointer.c --- .../Student Works/elenazdravkoska/pointer.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 AY 2022-2023/Student Works/elenazdravkoska/pointer.c diff --git a/AY 2022-2023/Student Works/elenazdravkoska/pointer.c b/AY 2022-2023/Student Works/elenazdravkoska/pointer.c new file mode 100644 index 00000000..1abb2b2b --- /dev/null +++ b/AY 2022-2023/Student Works/elenazdravkoska/pointer.c @@ -0,0 +1,14 @@ + #include +int main(){ + int a=12, b=6; + int *p1, *p2; + + p1=&a; + p2=&b; + printf("%d \n", *p1 + *p2); + printf("%d \n", (*p1) * (*p2)); + printf("%d \n", *p1 - *p2); + printf("%d \n", *p1 / *p2); + + +}