By default, the printf function adds a new line character (\n) at the end of each printed line. However, you can use the printf function with the format specifier %s to print text without a new line.
Here's an example:
#include <stdio.h>
int main() {
printf("Line 1 ");
printf("Line 2");
return 0;
}
Output:
Line 1 Line 2