From c7787fdeb77da20e48e12b14392761d41ac0131a Mon Sep 17 00:00:00 2001
From: munyeong Jung <skymy02@ajou.ac.kr>
Date: Tue, 15 Feb 2022 03:06:29 +0900
Subject: [PATCH] update lec06 tests

---
 lec06/count1.c |  1 +
 lec06/test.c   | 10 ++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 lec06/test.c

diff --git a/lec06/count1.c b/lec06/count1.c
index 948f9f6..03c18ce 100644
--- a/lec06/count1.c
+++ b/lec06/count1.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#define VALUE_ONE 1
 
 // Count number of 1 (binary)
 
diff --git a/lec06/test.c b/lec06/test.c
new file mode 100644
index 0000000..235dbcb
--- /dev/null
+++ b/lec06/test.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int main()
+{
+        int a = 100;
+        int b = 200;
+
+        fprintf(stdout, "%d : %d\n", a, &a); // &a는 a가 저장된 주소
+        fprintf(stdout, "%d : %d\n", b, &b);
+}
-- 
GitLab