Interview Questions and Answers

How will you print \n on the screen?

A   printf("\n");

B   echo "\\n";

C   printf('\n');

D   printf("\\n");


Correct Option - D

Explaination

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

Report this question

Write Your Comments
!You need to be logged in to post comment

Share This Page -