What Are Format Specifiers and what is the importance of it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What Are Format Specifiers and what is the importance of it?

we use format specifiers. I want to know what are those and how they work and its significance.

11th Aug 2017, 12:10 AM
Ishu Maurya
Ishu Maurya - avatar
4 Answers
+ 3
"%s" takes string values "%c" takes char values "%d" takes int values "%lf takes double values "%f" takes float values example: printf("%s",name);
11th Aug 2017, 2:45 AM
Manual
Manual - avatar
+ 2
If you want to learn more get the basics of C++ down first. Then learn C https://www.sololearn.com/discuss/459759/?ref=app
11th Aug 2017, 2:47 AM
Manual
Manual - avatar
+ 1
The specifers are from C code. Nothing to do with Java.
11th Aug 2017, 2:43 AM
Manual
Manual - avatar
0
can i get a simplified ans.
11th Aug 2017, 12:22 AM
Ishu Maurya
Ishu Maurya - avatar