UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How do you print this line in brackets as output through C....???? [ printf("hello") ]

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Computer Science Tutor

void main() { clrscr(); printf(“\”); getch(); } Output:
Comments

International Corporate Trainer For dotnet Core ,Angular 2 ,C ,C++ and LPT Marathi for RBI Banking

Here is answer :printf("printf(\"hello\") ]");
Comments

Project Development: Custom Training and Software based Project Development Company

#include stdio.h #include conio.h void main() { clrscr(); printf(“\\n”); getch(); } Output:
Comments

LearnHowToLearn, Expert In Programming Languages

If it is just a message and no format specifiers are used in printf then it is easy: #define PRINTF(msg) printf("[printf(%s)", msg) then use PRINTF instead of printf, done.
Comments

S/w engg

printf("printf("hello")");
Comments

TECHGIG

if(printf("hello")) { }
Comments

Industry Professional, Gold Medalist, UGC NET(Com Sci), GATE(Com Sci) qualified, M.Tech (CS) From Jawaharlal Nehru University

printf("");
Comments

Teacher

simply use printf("hello");
Comments

Expert in Computers

we have to use back slash symbol(\) printf("") this will gives the required output.
Comments

Freelance technical trainer / consultant (Embedded systems, Automation / Scripting) : C, Linux, Embedded systems, python, perl, tcl

Use escape sequence, that is backslash character \. For printing any special character such as ", you need to place \ before that. That will solve your problem. For example \n prints a new line. If you want to print \n itself then you need to use \\n. Basically escape sequence that is \ removes speciality...
read more
Use escape sequence, that is backslash character \. For printing any special character such as ", you need to place \ before that. That will solve your problem. For example \n prints a new line. If you want to print \n itself then you need to use \\n. Basically escape sequence that is \ removes speciality of the special character read less
Comments

View 20 more Answers

Related Questions

hi guyz! i am dng my 2nd yr in engg n i wanna strengthen my C n C++ prgmmng skills........which s d best way for it?? can u suggest me sum gud books to refer??
you can study the online websites and also solve the output,error oriented program in LET US C book by yaswant
Logeshwari
Can stdout be forced to print somewhere other than the screen?
Although the stdout standard stream defaults to the screen, you can force it to print to another device using something called redirection
Vijay
0 0
5
What does # mean in C?
#include is a preprocessor directive which is used to include user-defined file.
Sridevi
0 0
5
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

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 Language
To get help in C window (for keywords, functions) press Alt +F1.To delete a single line , use the shortcut key CTRL +Y.If you got error about the path when you execute a C pgm, check the Options menu =>Directories.
T

Thilagam S.

0 0
0

Operators in C
Operators in C Operator: An operator is a symbol that tells the compiler to perform certain mathematical or logical calculations. Operators are used in programs to manipulate data and variables. The...

Some interview questions for freshers on C language
Q1. What are the two forms of #include? There are two variants of #include. The one is #include and the other one is #include”file”. In general the first form that is #include is used to...


Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

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 >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

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
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more