rubixibuc
rubixibuc

Reputation: 7397

Nesting single quotes

There doesn't seem to be a question for this, and it seems strange that I don't know this. When I program in c/objective-c, must I escape single quotes nested within double quotes.

example

"'" or "''"

is this needed

"\'" or "\'\'"

thanks

Upvotes: 0

Views: 375

Answers (1)

Oliver Charlesworth
Oliver Charlesworth

Reputation: 272517

No, escaping is unnecessary for single-quotes.

Upvotes: 8

Related Questions