Evaluate a backslash expression in the middle of an expression

Suppose in C I have the following code:

i=5 \    
+6;  

If I print i, it gives me 11.

I do not understand how this code runs correctly. At first glance, I guessed that this was a compiler error due to an unrecognized token \. Can anyone explain the logic? Is this related to max munch logic?

+4
source share
2 answers

The backslash at the end of a line tells the compiler to ignore the newline character.

. , , , .

( , C , , "abc" "def", . , . , .)

, heretolearn, . , . . () , , ( ).

, , , . , :

abc\
def

abcdef, abc def. , ( , ??=, , #, - ):

MyStructureVariable-\
>MemberName

IncrementMe+\
+

. .

+10

. -, C. , , , - , , ++.

- , . , . , , . ( , .)

- .

, . , , , GCC .

+1

All Articles