What is the meaning of \n and \t in C language?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

I am online Quran teacher 7 years

\n (New line) -- We use it to shift the cursor control to the new line. \t (Horizontal tab) -- We use it to shift the cursor to a couple of spaces to the right in the same line.
Comments

I am a tutor since last 1 year

\n (New line) -- We use it to shift the cursor control to the new line. \t (Horizontal tab) -- We use it to shift the cursor to a couple of spaces to the right in the same line.
Comments

"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"

\n = newline (moves to next line) \t = tab (adds horizontal space)
Comments

C, HTML,CSS trainer with 1 year of experience

\n in printf statement means NEXT LINE whereas \t refers to Tab space
Comments

"Fueling Future Innovators with a Decade of Embedded and Tech Expertise"

\t – Horizontal Tab It inserts a tab space (usually about 8 spaces, depending on the system). Used to align text neatly in columns. \n – New Line It moves the cursor to the beginning of the next line. Equivalent to pressing Enter.
read more
\t – Horizontal Tab It inserts a tab space (usually about 8 spaces, depending on the system). Used to align text neatly in columns. \n – New Line It moves the cursor to the beginning of the next line. Equivalent to pressing Enter. read less
Comments

View 3 more Answers

Related Questions

How do I start learning C programming and finish it in one month?
Use a book named "Let us C"by yashwant t kanetkar. Or simply by taking a class from teachers on urbanpro
Profile Photo
Pallavi
0 0
View Comments8
How do I get C help in Ubuntu?
Use command line tool 'man'. for example 'man printf' will give you details regarding printf function C
Profile Photo
Ashmita
0 0
View Comments5
Why are operating systems written in C? Why aren't other languages used?
low-level access to hardware, performance, and historical reasons.
Profile Photo
Chandramami
0 0
View Comments5
How can I try to remember the coding in C language?
One shouldn't try to remember the coding. The right approach is to understand the logical solution to the problem.
Profile Photo
Chinmayee
0 0
View Comments5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C and C++ programming with memory level debugging
Understanding C and C++ programming by using memory level debugging. Step 1: Understand the Memory map of C executable Step 2: Start memory level debugging using popular IDE Step 3: Find the memory...
Profile Photo


Facts about C language
C programming language was developed in 1972 by Dennis Ritchie at AT&T Bell Labs. It was developed to overcome the problems of languages such as B, BPCL. It was developed to write the Unix operating...
Profile Photo

Recursion in C Programming
The process of calling a function by itself is called recursion and the function which calls itself is called recursive function. Syntax of Recursive Function returntype recursive_func () { statements; ...
R

Ravindra Yadav

2 0
View Comments0

Pointers and References
Are reference and pointers same? No. I have seen this confusion crumbling up among the student from the first day. So better clear out this confusion at thevery beginning. Pointers and reference...
Profile Photo

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you