In C Format specifier for string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In C Format specifier for string?

Why we dont need format specifier for string but for numbers and character. Example : printf("hello world");

3rd Jul 2021, 7:36 PM
Rishi
Rishi - avatar
2 Answers
+ 4
because first argument of printf expect a string... and no more arguments if string doesn't contains format specifier ^^
3rd Jul 2021, 7:54 PM
visph
visph - avatar