Back to C Notes
Topic #6

C Output


Output (Print Text)

To output values or print text in C, you can use the printf() function:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");

return 0;
}

Double Quotes

When you want to print text, the text must be wrapped in double quotes "".

If you forget the double quotes, an error occurs:

Example

printf("This sentence will work!");

Tip: If you see strange error messages, check that your text starts and ends with double quotes.


Many printf() Functions

You can use as many printf() functions as you want.

However, note that it does not insert a new line at the end of the output:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");

printf("I am learning C.");

printf("And it is awesome!");

return 0;
}

Note: Notice: All the text appears on the same line. In the next chapter, you will learn how to add new lines to make the output easier to read.

Want to go beyond the notes?

Join Coding Now Tech Institute's C course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

C Output – FAQs

Quick answers about learning C Output in C.

This free note from Coding Now Tech Institute explains C Output in C — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every C topic on Coding Now Tech Institute, including C Output, is 100% free with no signup required.
With focused practice, most students grasp C Output in 1–3 days from these notes; pairing it with Coding Now Tech Institute's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the Coding Now Tech Institute Community (/community) — expert instructors answer within 24 hours.
Call NowEnroll Now