Line Splicing in C/C++
While writing a program, at times we give comment about the working of the code in the comment section using a single/double comment line. What happens if we use (backslash) character at the end?
Line Splicing is the answer to the above question. Lines terminated by a (backslash) are spliced together with the next line very early in the process of translation.
At the end of the comment line whenever we use a (backslash) character, it deletes the backslash character and the preceding next line of code only from the entire program or we can say that the ending (backslash) makes the new line also as a comment for the compiler.
// Concept of Line splicing through C Program.
#include <stdio.h>
int main()
{
// Line Splicing
printf(“Welcome to FACE Prepn”);
printf(“Learn Line Splicing”);
return (0);
}
Output: Learn Line Splicing