summaryrefslogtreecommitdiff
path: root/char_array2.c
diff options
context:
space:
mode:
Diffstat (limited to 'char_array2.c')
-rw-r--r--char_array2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/char_array2.c b/char_array2.c
new file mode 100644
index 0000000..43a69aa
--- /dev/null
+++ b/char_array2.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <string.h>
+
+int main(int argc, const char *argv[])
+{
+ char message[20];
+ strcpy(message, "hello, world!");
+ printf("%s", message);
+ return 0;
+}