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
Write a python script that will take two file names as input (src, dest). Open src reading each line in the file, and replacing any occurrences of name with the string "redacted".

fow to I write a emplate that reads a set of numbers typed at the keyboard into an array of T

As with 2 nd order differential equations we can't determine a non-homogeneous differential equation unless we can initially solve the homogeneous differential equation. We'll als

Please write a program declaring a variable x as the type int, and use the scanf function to input an integer to initialize the value of x. Then, your program will print the follow

i have 4 variables in my linkage section of PIC 9(3) ..while submitting i m passing parameter value i.e. numeic to them but its taking space for 2 varaible and for two its taking c

Access Modifiers Convenience Modifiers or we can say (Access Specifies) identifies as the opportunity of accessibility of an Item and its associates. All C# kinds and kind associat

.NET class library .NET structure comes with just one category selection. And that all developers need to learn!! Whether they create the value in C# or VB.NET or J#, it doesn't

Abstraction hierarchy of mechanisms Given  the light-sensitive the motor and resistor,  we could  find  several  ways  of interconnecting them, using bits of ceramic and metal

Your task is to write an application to analyse texts in a file.  Your application will employ  several kinds of text-analyser objects (which you also have to implement)  as descri

C++ language introduces object-oriented programming (OOP) features to C language. It offers classes, which provide the four features commonly present in OOP (or some non-OOP) langu