Random
Source Code

%d

It is a placeholder for a decimal integer in various programming languages

In the C programming language, the following code:

void main()
{
printf("%d", 6);
}

would give the output of

6

In that example, the %d acts as a placeholder for the number 6. So when it gets compiled, the %d gets replaced with a 6

by cheesepotato July 24, 2005

39👍 8👎