summaryrefslogtreecommitdiff
path: root/strings.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 /strings.c
First commitHEADmain
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/strings.c b/strings.c
new file mode 100644
index 0000000..0353fc5
--- /dev/null
+++ b/strings.c
@@ -0,0 +1,28 @@
+#include <stdio.h>
+
+static char myArr[7] = {'C','a','r','o','l'};
+
+
+int main(void)
+{
+
+ /* char birthdays[6]; */
+
+ /* birthdays[0] = 'C'; */
+
+ /* printf("%c\n", birthdays[0]); */
+
+ /* birthdays[5] = 0; */
+
+ //char dragon[] = {'C','a','r','o','l', '\0'};
+
+
+ char dragon[7651] = {'C','a','r','o','l', '\0'};
+
+ printf("%s\n", myArr);
+
+ return 0;
+}
+
+
+