What does %d mean? Why d and not another letter? [closed]

Actually % is not the modulo operand or modulo operator here because it’s included inside a string. It’s just a character chosen to separate literal text from parameters. And d is used because it performs input and output in decimal (base 10).

Leave a Comment