in reply to printf question

You could take a look at the documentation first and then ask questions here when you can't figure it out.

Show some initiative, please.