Solution for Exercise 4-15
ex0415
#include <stdio.h>
int main()
{
puts("\"Hey,\" said the snail, \"I said no salt!\"");
return(0);
}
Notes
* As with the printf() function, you need to escape the double quotes as they otherwise would mess up the string.
* You have no need to keep the newline, \n, in the string as the puts() function automatically adds the newline.
Copyright © 1997-2025 by QPBC.
All rights reserved
