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 we pass arguments in the main function in C language?
Yes. it is possible to pass arguments into the main function.
Mukesh
0 0
7
What are the control statements in C language?
They are broadly classified into three types: decision-making, iteration, and jump statements. Decision-making statements, like if, else if, and switch, determine the flow of execution based on conditions....
Mukund
0 0
5
Is C#, C++, Python, or JS better for game development?
All languages good for gamjng. But you can make 3d games in c# uaing unity software and it's very very interesting to work on it.
Mohit
0 0
6
How and where do I start learning C programming?
To start learning C programming, you can follow a structured approach that includes both theoretical knowledge and practical implementation. Begin with understanding the basics of C, including variables,...
Gaurav
0 0
7

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-Working with constant using #define preprocessor
//Header Files #include#include // using #define preprocessor for defining a constant#define len 10#define br 5#define rad 3#define NEWLINE '\n' //Main function void main(){ int area_r; float area_c; //Function...

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

How to write shared library program using C Programming?
Library Name : hellofilename : hello.c#include void Hello(){ printf("Hello World .. How are you 1\n");}======================================Header File:hello.h#ifndef __HELLO_H#define __HELLO_Hvoid Hello(void);#endif===============================Application...

What is Safety-Critical Software?
A software whose failure may cause death or injuries to the users called Safety-Critical Software.The software present as part of Aeroplanes, or present in Rail as railway signalling software or Automotive...

Swapping variable contents using C
/* WAP to swap the content of variables using C*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ //Variable declaration of type integer int a,b,c; //function...

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