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

Why are there so many programming languages if most programmers use C, C++, Java, and PHP?
This question has the same answer as the question"Why there are so many languages?" has... As they were ask meant for different purpose to serve for different platforms... For short: Link it to the languages used
Veerendra
0 0
7
Can include files be nested?
one line can only include one directory. No nesting is applicable.
Himangi
0 0
7
How do I learn C programming by videos or books?
BOOKS AND PRACTICE by far remain the best way for learning any language ....
Fgrefg
0 0
7
in c : i want run time input: data=[name:raj,age:20] output: value[0]=raj value[1]=20 i want c code
Make use of Command line argument and access using argv,argc.
Vanaraj
Other than in a for statement, when is the comma operator used?
Example : int i,j; i=(10,20,30,40); j=10,20,30,40; printf("%d",i); printf("%d",j); // in this program output of i will be 40 and j will be 10 // In interviews you can face such type of comma operator related questions.
Sanjay

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

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

Bit wise operators in C
Bit Wise Operators Bit Wise operators are manipulates of individual bits with in a word of memory. The bit wise operators can be divided in to three general category. One’s Complement...

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

Recommended Articles

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 >

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 >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

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 >

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