Search code examples
cbackslash

usage of "\" in C?


I was looking over this code, but i was unable to figure out why the usage of "\" after the && operator?

if ((*(u32*)(kaddr + 0x64) == *(u32*)(kaddr + 0x78)) && \
    (*(u32*)(kaddr + 0x68) == *(u32*)(kaddr + 0x88)))

Solution

  • The \ right before the end of the line glues the following line to the current. Since C normally ignores whitespace, this is mostly useful when declaring macros.