[gnome-university] c101: add hello.c example.



commit 583f6b49123df80fdac02e4c891e084fc58b24b2
Author: Christian Hergert <christian hergert me>
Date:   Mon Nov 12 00:18:14 2012 -0800

    c101: add hello.c example.

 c101/examples/hello.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/c101/examples/hello.c b/c101/examples/hello.c
new file mode 100644
index 0000000..3630714
--- /dev/null
+++ b/c101/examples/hello.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int
+main (int   argc,
+      char *argv[])
+{
+    int a = 42;
+    printf ("Answer is %d, what's the question?\n", a);
+    return 0;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]