Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to store the single quote in a char.

Status
Not open for further replies.

SteveyC

Programmer
Nov 25, 2003
5
GB
Hi.

How can I store a single quote in a char? Don't seem to be able to get it right.

Cheers.
 
how about:
char x = '\'';/?

Ion Filipski
1c.bmp
 
Misprint? '\"' - common, well-documented escape...
 
Oh yeah. Der!

I even wrote the inverted comma using '\"' like 2 lines before it. *slaps his own head*
 
Sorry, IonFilipski: single quote. You was right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top