aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-05-27 08:47:11 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-05-27 08:47:11 -0300
commit39aa119cdfd2e5f806dd73060d3dbac6e3c8ef93 (patch)
treed6a023a2aab11517abc7069fcd033724c9c6b0ac
parent5034ae15704b650be100b824e83b1361a573940b (diff)
Second examplemain
Hello world second example
-rw-r--r--chapter01/hello2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/chapter01/hello2.c b/chapter01/hello2.c
new file mode 100644
index 0000000..d80b9ae
--- /dev/null
+++ b/chapter01/hello2.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+/*
+ * hello2.c
+ * My first C program with comments.
+ * by Lucas Castro
+ * created yyyy/mm/dd
+ */
+
+int main()
+{
+ printf( "Hello, world!\n");
+ return 0;
+
+}