How can I pad a string to a known length? Ans. Padding strings to a fixed length can be handy when you are printing fixed-length data such as tables or spreadsheets. You can easily perform this task using the printf() function. The following example program shows how to accompli...
See more
Download the Study24x7 App, so you can connect and collaborate.