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 include files be nested?
Yes. Include files can be nested any number of times. As long as you use precautionary measures, you can avoid including the same file twice. In the past, nesting header files was seen as bad programming...
Himangi
0 0
7
I would like to know how we can use two dimensional arrays in strings? I would also know whether we can compare two dimensional strings?
// Two-dimensional array. int array2D = new int { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; // The same array with dimensions specified. int array2Da = new int { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7,...
Harsha
How do I check my C programming skills?
You can your programming by writing programs for scenario type questions and take skill test in techgig.com
Ramnarayanan
0 0
5
What is a void main() in the C programming language?
In C programming, void main() is an incorrect signature for the main function. The correct signature is int main(). The main function serves as the entry point for C programs and typically returns an integer...
Ambar
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 PROGRAM FOR GENERATING SOUND
#include<stdio.h> #include<conio.h> #include<dos.h> void main() { sound(3000); // sound function have single parameter , this parameter we put integer value its generating...

V. Muthu Ganeshan

0 0
0

Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When...

Necessity of Theory and Practical in Computer Science.
Upon studying a subject both theory and practical are important. Usually many schools concentrate more on theory and the marks not on the practical. Other and opposite kind of people prefer practical...

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...

Advantages of C++ Language
Advantages of C++ - C++ is a profoundly convenient dialect and is frequently the dialect of decision for multi-gadget, multi-stage application advancement. - C++ is a protest situated programming dialect...

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