A NUL terminator is a zero byte placed after text data to mark where a byte string ends. Unlike a slice, which carries its length, a C string is a pointer to bytes terminated by zero. section 5.2.3
Zig represents C strings with sentinel pointers such as `[:0]const u8`. String literals also include a NUL terminator, so they can be passed directly to C functions without copying or extra abstraction. section 2.2.5 section 5.2.3
Listing 2.13 What’s the type of a string literal?
const std = @import("std");
pub fn main() void {
const T = @TypeOf("I am a string literal"); // #1
std.debug.print("{}\n", .{T}); // #2
}
Check a string literal's type with `@TypeOf`; the result shows its sentinel in Zig's type syntax. section 2.2.5

