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
Define Functions with no arguments and no return values? When a function has no arguments it doesn't receive any data from the calling function. Likewise, it doesn't return any

2. TEST & AND TEST is like CMP, it is used for conditional statement, and doesn’t save the answer. AND is logical multiplication. 3. INS & IN IN is used for data transfer from I/O

On December 27, 2011, Seymour Gravel, at the urging of his wife, Mary Walford, has brought you his preliminary figures for his business. Seymour carries on a business writing and e

Write an interactive C program which prompts the user with the following options on the opening menu: 1) Student information 2) Theory counselling batch-scheduling

Topic Develop a Web site that will provide information about your organization. The Web site will need to have a user-friendly interface for users to enter their information;

Objective: The purpose of this programming project is to explore page replacement algorithms. This can be accomplished by developing a simple simulator that implements various pag

Consider the following schema (DTD) and sample instance document: name    ID      #REQUIRED spouse  IDREF   #IMPLIED job     CDATA   #IMPLIED > ]>

program take integer from user and print in alphabets

Draw the sequence diagram for the following scenario of eBroker. Sell Stock The user enters the username and password The system checks that the user is a valid user