SMRTR ProgrammingOct 10, 2024Lobsters

Coding without braces: An alternate C Syntax

SMRTR summary

C programming language includes alternative syntax options called digraphs and trigraphs. These allow the use of two or three character combinations to represent symbols like braces and brackets, which may not be available on all keyboards. For example, <% can be used instead of {, and ??< represents {. This feature was designed to accommodate different character sets and keyboard layouts. While trigraphs are being phased out in C23, digraphs remain supported. These alternatives have also been used creatively in code obfuscation competitions.

SMRTR provides this summary for quick context. The original article belongs to Lobsters.

Read the original article
SMRTR Programming

Get the next batch of curated summaries in your inbox.

This archive is built from SMRTR newsletter summaries. Subscribe for hand-picked stories without the extra noise.