Program for a single new-line character, Programming Languages

The following function calls supposedly write a single new-line character, but some are incorrect. Identify which calls don't work and explain why.

    printf("%c", '\n');        

    printf("%c", "\n");        

    printf("%s", '\n');        

    printf("%s", "\n");        

    printf('\n');              

    printf("\n");              

    putchar('\n');             

    putchar("\n");              

    puts('\n');                

    puts("\n");                

    puts("");

Posted Date: 3/7/2013 12:31:10 AM | Location : United States







Related Discussions:- Program for a single new-line character, Assignment Help, Ask Question on Program for a single new-line character, Get Answer, Expert's Help, Program for a single new-line character Discussions

Write discussion on Program for a single new-line character
Your posts are moderated
Related Questions
W.A.S.S to display all the files in a specified directory in the following format: File  size in K        Date   Protection    Owner Program echo -e "Enter dir : \c" read di

Hi, Can any of you, tell me how to use Included Applications?

All programs have to be done in console application. Program 1, 2 and 3 are due on 2/11/12 Program 4, 5, and 6 are due on 2/18/12 Program 7, 8, and 9 are due on 2/25/12 Program 10

Shopping Cart Purpose – Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for al

Task: This assignment is about writing programmes and Web Services in C#: 1) Develop a console programme that reads a sequence of integer numbers from the console and sorts

what is java

about how to create the program in c

Write a program that takes names of 5 students in 2D Character Array and their GPAs in 1D array. Arrange the names in alphabetical order and display on screen along with GPA.

Translate the following formula into a prefix form expression in Scheme: Question 2 Define a procedure that takes three numbers as arguments and returns the sum of the squ

We want to create a structure that will represent a deck of cards  (not necessarily full). Each card has a character (between  '2'  to  '9' and  'T',  'J',  'Q',  'K',  'A') and a