🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to C++ Notes
Topic #6

C++ Output


C++ Output (Print Text)

The cout object, together with the << operator, is used to output values and print text.

Just remember to surround the text with double quotes (""):

Example

#include <iostream>
using namespace std;

int main() {

cout << "Hello World!";
  return 0;
}

You can add as many cout objects as you want. However, note that it does not insert a new line at the end of the output:

Example

#include <iostream>
using namespace std;

int main() {

cout << "Hello World!";
  cout << "I am learning C++";
  return 0;
}

Tip: You will learn how to add new lines in the C++ New Lines chapter.

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