Skip to content

Appendix

The first program in Zig is small.

SectionTitle
1Hello, Zig
2Appendix A. Zig Syntax Summary
3Appendix B. Operators and Precedence
4Appendix C. Builtin Functions
5Appendix D. Standard Library Map
6Appendix E. Build System Reference
7Appendix F. C Interop Reference
8Appendix G. Common Compiler Errors
9Appendix H. Zig 0.16 Migration Notes
10Appendix I. Exercise Answers
11Appendix J. Index
12Colophon
Hello, ZigThe first program in Zig is small.
2 min
Appendix A. Zig Syntax SummaryThis appendix is a quick map of Zig syntax. It is not a grammar. The full Zig grammar is part of the official language reference. Zig 0.16 also keeps the language small enough...
8 min
Appendix B. Operators and PrecedenceThis appendix lists the common operators by use. When an expression is not obvious, use parentheses.
2 min
Appendix C. Builtin FunctionsBuiltin functions are part of the language. Their names begin with @.
3 min
Appendix D. Standard Library MapThe Zig standard library is imported as:
3 min
Appendix E. Build System ReferenceZig builds programs with Zig code. The build script is named:
4 min
Appendix F. C Interop ReferenceOne of Zig's central goals is direct interoperability with C. Zig can call C code, compile C code, link system libraries, export functions to C, and translate C headers.
4 min
Appendix G. Common Compiler ErrorsZig tries to report errors at the point where the program becomes invalid. Many messages are direct: a value has the wrong type, a variable is unused, an error was ignored, or...
4 min
Appendix H. Zig 0.16 Migration NotesThis appendix records the kinds of changes that matter when moving older Zig code to Zig 0.16. It is a practical checklist, not a full release history.
4 min
Appendix I. Exercise AnswersThese are short answers or sketches for selected exercises from the book. Many exercises have several reasonable solutions. The important part is clarity and correctness.
5 min
Appendix J. IndexA
2 min
ColophonThis book describes the Zig programming language as of Zig 0.16.
2 min