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