when to use 3d in printf function code example Example: printf("%3d ",XX); #include <stdio.h> int main() { int x = 10; printf("%3d ",x); }