UrbanPro

Learn C Language from the Best Tutors

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

Search in

Why we use 'include stdio.h'?

Asked by Last Modified  

Follow 26
Answer

Please enter your answer

The header file which is added to the program that one has written is basically what 'include stdio.h.' means. Stdio.h is known to contain the input and output operations like "printf" or "scanf" etc. "h" extension means the header file. If you request to use a header file in the program by actually...
read more

The header file which is added to the program that one has written is basically what 'include stdio.h.' means. Stdio.h is known to contain the input and output operations like "printf" or "scanf" etc. "h" extension means the header file.

If you request to use a header file in the program by actually including it with the preprocessed C directive #include like you have seen the inclusion of stdio.h header file, which comes along with the compiler you are using.

If the header file is equal to that of copying the header file, it is advised not to do it because it would be inevitable to get an error and it's, of course, a bad idea to copy the content of the header file into its designated source files, as in if at all one has multiple source files in a written program.


In layman's terms, It's effortless .#include is what is known as a "preprocessor". As the name suggests, it is preprocessed before the code. These preprocessor statements are compiled before any other code in your script.
Hope this helps

read less
Comments

Expert In Computer Languages

stdio.h is the header file for standard input and output. This is useful for getting the input from the user(Keyboard) and output result text to the monitor(screen). With out this header file, one can not display the results to the users on the screen or cannot input the values through the keyb...
1 Comments

Computer Engineering / Diploma Tutor

STDIO.H is a file which contain declaration of many functions and Macros which required to get input from input devices and show output on output screen of C Program. It is not compulsory to include "stdio.h" as we can provide input to c program using any other program like DOS and can store output...
read more
STDIO.H is a file which contain declaration of many functions and Macros which required to get input from input devices and show output on output screen of C Program. It is not compulsory to include "stdio.h" as we can provide input to c program using any other program like DOS and can store output to any FILE. Which we can see later. read less
Comments

We use to 'include stdio.h' to include the header.
1 Comments

stdio.h is a header file which contains the declarations (not the definitions) of standard I/O functions like printf(), scanf(), etc.,. The header file just tells the compiler what types external functions and variables are, defines macros, types etc. Any functions and variables that get referenced in...
read more
stdio.h is a header file which contains the declarations (not the definitions) of standard I/O functions like printf(), scanf(), etc.,. The header file just tells the compiler what types external functions and variables are, defines macros, types etc. Any functions and variables that get referenced in your source file will be linked in during the linker phase. If you include stdio.h and use printf in your program, the compiler adds printf as an "unresolved" symbol in the object file, and then the linker will try to find a function called printf either in the object files you explicitly link, or in the libraries it is configured to search. read less
Comments

Can teach any computer subjects for classes BCA,BCS ,BE(computer) and MCA

Studio.h is a header file which contains function definitions for all input output functions like printf scanf gets puts fetch etc which are been called by the programmer in the program for accepting and displaying input and output.
Comments

Data Science, Machine Learning and Web Development Coach

"stdio" stands for standard input-output. Some of the most commonly used pre-written functions are getc(), putc(), gets(), puts(), scanf(), printf() and also their file IO counter parts such as fputs(), fgets(), fprintf(), fscanf(), etc., are packaged into stdio.h. This package also includes certain...
read more
"stdio" stands for standard input-output. Some of the most commonly used pre-written functions are getc(), putc(), gets(), puts(), scanf(), printf() and also their file IO counter parts such as fputs(), fgets(), fprintf(), fscanf(), etc., are packaged into stdio.h. This package also includes certain special functions such as fflush() and file IO related functions such as fopen(), feof(), fclose(), ftell(), fseek(), fwrite(), fread(), etc. Most of the C programs include one or more of the above functions to achieve a given task. Hence, it has to be included as a header file. read less
Comments

B.E (Computer Science & Engineering) 78%; MS (Computer Science) (USA) (GPA: 3.8/4.0)

stdio.h contains prototypes for standard input/output functions like scanf/printf. Without including this file, one will not be able to read input from keyboard or write output to screen.
Comments

Ph.D. in Bioinformatics

It is a header file or library for Standard Input and Output as it shows by name std(Standard)-i(input)-o(output). The function printf, Scanf, gets, puts etc will not work and will not be able to provide any input to program or get output from the program. Better way to understand any header file is...
read more
It is a header file or library for Standard Input and Output as it shows by name std(Standard)-i(input)-o(output). The function printf, Scanf, gets, puts etc will not work and will not be able to provide any input to program or get output from the program. Better way to understand any header file is to remove the header file and execute the program and then see what are the errors you are getting. read less
Comments

Computer Science Tutor

stdio.h is a header file in C, it is the file which contains C declaration and Macro definition to be shared between several files. stdio.h means standard input/output function which contains printf(), scanf() functions.
Comments

View 53 more Answers

Related Questions

How do I print \n in C or C++ programming?
void main () { printf(" "); getch(); }
Supriyo
0 0
6
How can you avoid including a header more than once?
Use following in your header file. #ifndef "header_name" #define "header_name" /*header definition starts here*/ #endif /* header file ends here*/ Whenever you will include the same header file,...
Deepak
0 0
7
How can you be sure that a program follows the ANSI C standard?
The ANSI C standard provides a predefined symbol named __STDC__ that is set to 1 when the compiler is enforcing strict ANSI standard conformance. If you want your programs to be 100 percent ANSI conformant,...
Vibha

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

Ask a Question

Related Lessons

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

C Program to print Block Letter and Small Case Alphabets using C
/* WAP to print Block Letter and Small Case Alpahbets using C*/ //Hint:use ascii code(value) to print #include#include void main(){ int i; clrscr(); //Block Letters Alphabets printf("Block Letters Alphabets\n");...

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

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();...

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 >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

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