Friday, January 6, 2012

What is the complete structure of format specifications for int and float type data?

The complete structure of format specifications is

%[flag][field width][.precision]type

where format string components enclosed by [ ] are optional (the characters [ and ] are not the part of the format string.

The meanings of these components may vary slightly from compiler to compiler. Therefore, you should check the manual of the compiler you use.

No comments:

Post a Comment