\
at the End of the Line
This page was translated by a robot.
If a backslash occurs at the very end of a line without another whitespace \, the preprocessor will remove the end of the line and append the next line directly to the current one. This is used in particular for macro definitions, which by definition are only allowed to span one line, but are often too confusing to display in a single line.
a = (50, 60, 70)
#include <stdio.h> #define SET(a, x, y, z) \ a[0] = x;\ a[1] = y;\ a[2] = z int main(){ int a[3]; SET(a, 50, 60, 70); printf("a = (%d, %d, %d)", a[0], a[1], a[2]); return 0; }