diff options
| author | David Faulkner <[email protected]> | 2026-08-07 23:40:47 -0500 |
|---|---|---|
| committer | David Faulkner <[email protected]> | 2026-08-07 23:40:47 -0500 |
| commit | b3e9e62599532050fc776c5e8f076915b56c2235 (patch) | |
| tree | af252346106a61b18cc6fc6fdbd32e962d096f1c /literals.c | |
Import official C23 code examples for Modern C (Jens Gustedt, 2024)HEADupstream-importmain
- Add official C source files, Makefile, c23-fallback.h, and LICENSE
- Update README.md with study mirror notice
Diffstat (limited to 'literals.c')
| -rw-r--r-- | literals.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/literals.c b/literals.c new file mode 100644 index 0000000..f2c577e --- /dev/null +++ b/literals.c @@ -0,0 +1,7 @@ +char const A[] = { 'e', 'n', 'd', '\0', }; +char const B[] = { 'e', 'n', 'd', '\0', }; +char const* c = "end"; +char const* d = "end"; +char const* e = "friend"; +char const* f = (char const[]){ 'e', 'n', 'd', '\0', }; +char const* g = (char const[]){ 'e', 'n', 'd', '\0', }; |
