Output new line character : Control Character « Data Type « C / ANSI-C






Output new line character

  
#include <stdio.h>

int main(void)
{
  printf("one\ntwo\nthree\nfour");

  return 0;
}

           
       








Related examples in the same category

1.Back to the start of the line
2.Displaying a String with line separator
3.Displaying String: out quotation marks in a printf
4.Display string: special char
5.More special charsMore special chars
6.Output control character: new line