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 the benefit of using an enum rather than a #define constant?
The use of an enumeration constant (enum) has many advantages over using the traditional symbolic constant style of #define. These advantages include a lower maintenance requirement, improved program readability,...
Basundhara
0 0
7
What is the output of the below: printf("%d", printf("Hello"));
The output would be as follows: Hello5 Reason: 'printf( )' not only prints a given strings, but it also returns a number which is the count of the number of characters that it has successfully printed...
Pravalika
What is the importance of pointers? People stress more on them. Why they are useful actually what is their importance?
Importance of pointers:- Pointers are used in situations when passing actual values is difficult or not desired. To return more than one value from a function. They increase the execution speed. The...
Pati
Can a functions return more than one value at a time?
With the use of pointers a function can return multiple values.
Lamaan
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

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

Creating First Program Using C Language
Step 1: Install and setup Turbo C compiler on your computer. Step 2: Open Turbo C from your Desktop or Programs menu. Select “File” from menu bar and select option “New”. Step...

C Language
To get help in C window (for keywords, functions) press Alt +F1.To delete a single line , use the shortcut key CTRL +Y.If you got error about the path when you execute a C pgm, check the Options menu =>Directories.
T

Thilagam S.

0 0
0

Efficient Learning Strategies
Type your notes after class Write your notes onto flashcards - Scrabble -Make posters Review flashcards while walking, at gym, etc. Dog-ear pages in the reading where you can find...

How do i get best Campus / Off Campus Placement?
Companies are looking for Skilled Freshers. So build your technical skills while doing MCA / BTech / BCA / BSc (IT or CS) into below areas- 1. Strong your programming & debugging skills ...

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