[gnome-university] c101: add hello.c example.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-university] c101: add hello.c example.
- Date: Mon, 12 Nov 2012 08:19:03 +0000 (UTC)
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]