In C Format specifier for string? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
+ 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