summaryrefslogtreecommitdiff
path: root/scope_tutorial/2.c
diff options
context:
space:
mode:
authorClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
committerClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
commit102341d7ae8793c29d44fa416d3b5b797d1eca3e (patch)
tree6df9a5d5ef978dc6809a7d71d50de6e359dae2e7 /scope_tutorial/2.c
First commitHEADmain
Diffstat (limited to 'scope_tutorial/2.c')
-rw-r--r--scope_tutorial/2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/scope_tutorial/2.c b/scope_tutorial/2.c
new file mode 100644
index 0000000..a9f9429
--- /dev/null
+++ b/scope_tutorial/2.c
@@ -0,0 +1,15 @@
+double product(double a, double b)
+{
+ return a * b;
+}
+
+static double double_product(double a)
+{
+ return a * 2;
+}
+
+
+double use_another_static_function(double a, double b)
+{
+ return double_product(product(a, b));
+}