Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the backslash () character do strange things?

backslash character Strange
0
Posted

Why does the backslash () character do strange things?

0

On the HP48, one could type a backslash (\) in a string and it would simply place the backslash character in the string. On the HP49, the backslash is a special control character. Also on the HP48, it was not possible to insert one quotation mark into a string, as it would act as a string separator. The only workaround was the “C$ $” trick. With the HP49, one can enter a single quotation mark in a string by preceeding it with a backslash ([Alpha]-[RightShift]-[5]). In order to insert a backslash into a string, you need to type two backslashes. The first backslash is treated as a control character and the second one is displayed in the string.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123