Strings - Programming

Q1:

How will you print \n on the screen?

A printf("\n");

B echo "\\n";

C printf('\n');

D printf("\\n");

ANS:D - printf("\\n");

The statement printf("\\n"); prints '\n' on the screen.