I have a dumb question regarding performance using printf. Is there any difference in the code below? In the first example would there be an I/O burst everytime I called printf or would the compiler optimize the code and combine it into one burst like the second example?

Code:
printf("My name is Bob");
printf("I like green apples");
printf("My favorite color is red");
printf("I live in a blue house");
Code:
printf("My name is Bob\nI like green apples\nMy favorite color is red\nI live in a blue house");