\n

This is a discussion on \n within the C Programming forums, part of the General Programming Boards category; Hi, I've got stuck with a simple problem... How do I include a "\n" in a sentence without going to ...

  1. #1
    John_bosko
    Guest

    \n

    Hi,
    I've got stuck with a simple problem...
    How do I include a "\n" in a sentence without going to the next line?

    ex.. printf("Hello \n");
    would print Hello on the screen and then jump to the next line
    How do i get an output which will be Hello\n.

    Many Thanks,
    John

  2. #2
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    use

    \\n

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21