Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What the difference between printf and puts in C?
Both the command prints in the screen then where is the difference here?
3 Respostas
+ 6
Well, printf is used for general output whereby you can specify what (data type) and how (format) to display with format specifier.
On the other hand, puts is specifically used for display string only which append a new line at the back automatically.
0
If we want to print the string either we can useĀ printfĀ orĀ puts, but if we want to add new line after the string, we should useĀ puts
0
I guess my concepts got more clear.....