Tag: escape sequence

1 articles found.

How to use Escape Sequence in C++

Introduction to C++, C++ basics, getting started with c++, c++ basics

In today's tutorials, we are going to have a look at escape sequence in C++. In our previous tutorial, Introduction to C++ we have designed a small Hello World program and if you haven't studied it yet then you should first check that one out as I am gonna take it further from there. In that tutorial, we have designed a code which prints the Hello world on the output screen. The code used for printing it on the output screen is as follows: How to use Escape Sequence in C++ ?? Now, suppose if I want to print out "Hello World" , instead of Hello World. In simple words, I wanna add "" these symbols as well on each side of Hello World. But if you add them in the above program then it will generate errors. So, what to do now ? Here comes the benefit of escape sequence in c++. The escape sequenc ...