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

What is C language used for?
What is the C Language? The C language is a high-level, general-purpose programming language. It provides a straightforward, consistent, powerful interface for programming systems. That's why the C language...
Anil
0 0
5
Who founded the C language? Why?
The C programming language was developed by Dennis Ritchie at Bell Labs in the early 1970s. Ritchie, along with Ken Thompson, created C as an evolution of the B programming language, aiming to enhance...
Santosini
0 0
7
What is C? Where it is used ?
C has the advantage that it is a relatively small language, which makes it easy to implement a C compiler (whereas a C++ compiler is a monster to write), and makes it easier to learn the language. C...
Chandi

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

Ask a Question

Related Lessons

Datatypes in C Language
Data types in C Language Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that...

Why C is a Language and not a database?
When I interviewed a candidate, I raised this question many times, but I have not got the answer correctly. To under why C is a language and not a database, it is good to understand why our communication...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

C, Cpp, Java, Python, Javascript Programming Languages
Learning C is as good as Learning a Natural Language(such as English, Hindi, Telugu, Tamil etc) We use Natural Languages to communicate with humans whereas we use Programming Languages such as C, Cpp,...
V

Vamshi

0 0
0

Storage classes in c
Storage classes determine the scope and life time of a variable. Scope is defined as the region over which the defined variable is accessible. Lifetime is the time during which the value of a variable...

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