How to pronounce %d in C programming language? [closed]
How do we pronounce %
, in something like %d
? Is it pronounced as:
- per-cent d
- mod d
or, is there some other accepted/generalized way?
The pronunciation depends on the context.
In most cases, you would say percent. A couple of examples:
- for a percentage (such as
printf("100%")
), you would say "100 percent" - within a format string (such as
printf("%d", 2)
), you would say "printf of percent d"
As a modulo operator, you would say mod.
-
rem = a % 2
would be pronounced "a mod 2"