What does slash really mean?

I am wondering how the Java backslash is. How does a computer or compiler see this backslash and how is it stored on a computer?

I read that the backslash removes the special meaning of the next character. But how does the computer relate to this and in what conditions is it processed in other ways?

For example, a null character \0in C programming is the end of a line, but whether it is one character or two characters, i.e. backslash + zero?

The purpose of the backslash is to indicate for people or to indicate for a computer 0-1?

+5
source share
3 answers

\ - , A, , 4. , C (, , ), . , '\a' , (printf("%c", '\a')).

escape- C, , , , , . - 7. , \, A.

- . , , , , . , grep '\<foo\>' file.txt foo .txt. escape- < >, . \< \> ; .

+8

. , , . , Windows .

C ( ) escape-. , , . \0 , , 0 ( !) . , - ​​ , escape-.

+7

A backslash only means something special if the situation in which it is used counts it. For example, many programming languages ​​use them as escape characters in strings. This usually changes the value of the next character.

0
source

All Articles