{"content":{"id":721,"title":"'Build Your Own Lisp' Solutions: 5.2","body":"\u003cdiv class=\"card-image-caption\"\u003e(5.1 is a fun exercise and left to the reader)\u003c/div\u003e\r\n\u003cbr\u003e\r\n\u003cp\u003e\u003cb\u003eQ:\u003c/b\u003e Why are there back slashes \u003ci\u003e\\\u003c/i\u003e in front of the quote marks \u003ci\u003e\"\u003c/i\u003e in the grammar?\u003c/p\u003e\r\n\u003cbr\u003e\r\n\u003cp\u003e\u003cb\u003eA:\u003c/b\u003e So the C compiler doesn't mistake them for quotation marks which end the string.\r\n\u003c/p\u003e\r\n\u003c!--\r\n\u003cstyle\u003e\r\ni { background: white; font-style: normal; margin-left: 3px; margin-right: 3px }\r\n\u003c/style\u003e\r\n--\u003e","publication_date":"2019-06-19T00:00:00.000Z","created_at":"2019-05-19T16:50:55.000Z","updated_at":"2019-06-22T02:53:32.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=c\"\u003ec\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=lisp\"\u003elisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=build_your_own_lisp\"\u003ebuild_your_own_lisp\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=answers\"\u003eanswers\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e"}

'Build Your Own Lisp' Solutions: 5.2

(5.1 is a fun exercise and left to the reader)

Q: Why are there back slashes \ in front of the quote marks " in the grammar?


A: So the C compiler doesn't mistake them for quotation marks which end the string.