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

Can the last case of a switch statement skip including the break?
Last case if a switch should be DEFAULT.. Good to have this case always. Executed only when there's no other matching cases found.
Sanjeev
How can I write a C program to print a name without using a semicolon?
void main() { if(printf("Your Name")) { } }
Anand
0 0
6
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 difference between #include< > and #include" "
first one is used for predefined header files.. and second is used for user defined header files
Priya
1 0
6

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

Ask a Question

Related Lessons

Basic Concepts of Web Designing
An introduction to domain names, web servers, and website hosting 1)What is the web? In a nutshell, the web is a whole bunch of interconnected computers talking to one another. The computers (on the...

Can we store different data types in a stack?
Yesterday, one of my Facebook friend asked me this question. My answer is "yes", and in this post I will discuss how could we do this.I am a great supporter of working with unions and I will be using union...

C Program-Prime Number
/*WAP to print a number entered by the user is prime or not*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ int num,i; //Function for clearing screen clrscr();...
S

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

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