Could anyone give some info on the printf() method..
I know we can put %d and %s in the format argument so that it takes a string data type
and a decimal data type but apart from that are there any other uses of printf()?

some simple examples will do the job i guess..

Recommended Answers

All 2 Replies

Could anyone give some info on the printf() method..
I know we can put %d and %s in the format argument so that it takes a string data type
and a decimal data type but apart from that are there any other uses of printf()?

some simple examples will do the job i guess..

Examples would vary based on the requirement but it is an incredible tool for formatting. (see sprintf)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.