🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
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 CodingNow 2.0'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 CodingNow 2.0 explains C Output in C — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every C topic on CodingNow 2.0, 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 CodingNow 2.0'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 CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now