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

What purpose does \n have in C programming?
is used for new line. It prints the output in New or next line
Nasar
0 0
9
How is C++ language used nowadays?
C++ is widely used today in various domains, including systems programming, game development, high-performance computing, and embedded systems. Its efficiency, control over hardware, and versatility make...
Arumugam
0 0
5
What is a calling function in C?
A function call is an expression that includes the name of the function being called or the value of a function pointer and, optionally, the arguments being passed to the function
Gowre
0 0
5
What is the fee for learning C Language?
In C lang course ,there is not only basics it also having whole package to complete the task and course.cost may be it's depends upon the institute n teaching level
Sk.
Is it necessary to learn the C language and also C++ before joining an engineering college?
it is not necessary to learn C and C++, but if you want to make your are career in computer then learn C & C++ because these are basic computer language.
J.k.kavyadharshini

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 Program-String Palindrome
//Header files #include<stdio.h>#include<conio.h>#include<string.h> //Main function void main(){ char mystring; int i,length; int flag=0; //Function for clearing screen clrscr();...

C Program-Error Handling[Program Exit Status]
//Header files #include<stdio.h>#include<conio.h>#include<stdlib.h> //Main Function void main(){ int dividend=20; int divisor=5; int quotient; //Function for clearing screen clrscr();...

C for Begginers
C is an procedure oriented programming language. For any begginer the word program is new. Program: Set of instructions to be followed by machine or computer. Instruction Examples: Arithmetic instruction...

Datatypes in C Language
Data types in C Language Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that...

Some interview questions and answers for fresher level on Pointers
What is a void pointer? Void pointer is a special type of pointer which can reference or point to any data type. This is why it is also called as Generic Pointer. As a void pointer can point to...

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