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?
How do we pronounce %, in something like %d? Is it pronounced as:
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:
printf("100%")), you would say "100 percent"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"
printf("%d", ...)and not in modulo operations. – Priyanshul Govil Mar 01 '21 at 13:12