Correct Answer - Option 4 : Thank You
Explanation:
( // comment, /* comment */ ) these are used for commenting single line statement in C
( // comment \, /* comment */ \ ) these are used for multiline comment in C
Using backslash after every comment considers its succeeding line as a comment.
return statement:
- A return statement marks the end of a function's execution and transfers control back to the calling function.
- The calling function resumes execution at the point where the call was made.
- A return statement can return a value to the calling function.
- If a return value isn't required, declare the function to have a void return type.
- If a return type isn't specified, the C compiler assumes a default return type of int.
1) example
// Line Splicing\ is a comment
printf("Hello There\n"); it is also a comment
printf("Thank You");
Output: Thank You
2) example
// Line Splicing\ is a comment
printf("Hello There\n"); \ is a comment
printf("Thank You"); it is also a comment
No output