summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-10-06 09:16:10 +0700
committerfadhil riyanto <me@fadev.org>2024-10-06 09:16:10 +0700
commit0112303aa5489a736f55ae637bc43241f4bd06fc (patch)
tree224069c73778c733d3d40ff7b065b5b433437344
parent3f570bb384af3822a2f551fe442528b476ecf438 (diff)
test charptr
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r--test/ch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ch.c b/test/ch.c
new file mode 100644
index 0000000..0dfedad
--- /dev/null
+++ b/test/ch.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int main()
+{
+ char data[] = "abcdefg";
+
+ *data = *data + 1;
+
+ printf("%s\n", data);
+} \ No newline at end of file