C Output

Output (Print Text)


  • The printf( ) function is used to output values/print text. printf(parameter1, parameters2).

Example :

New Line:

  • To insert a new line, you can use the \n character:

Example :

With new line Output:

Without new line Output:

What is exactly \n:

  • The newline character (\n) is called an escape sequence, and it forces the cursor to change its position to the beginning of the next line on the screen. This results in a new line.( নিউলাইন ক্যারেক্টার (\n) কে এস্কেপ সিকোয়েন্স বলা হয়, এবং এটি কার্সারকে তার অবস্থান পরিবর্তন করতে বাধ্য করে পর্দার পরবর্তী লাইনের শুরুতে। এটি একটি নতুন লাইনের ফলাফল। )

Examples of other valid escape sequences are: