answersLogoWhite

0


Best Answer

### posted by Pulkit and Puneet from D.Y.Patil college/pune The ans is NO......... bcoz c compiler already contains the basic functions of STDIO.H in its code segment. ok guys..... ### posted by Pulkit and Puneet from D.Y.Patil college/pune The ans is NO......... bcoz c compiler already contains the basic functions of STDIO.H in its code segment. ok guys.....

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it necessary to include stdioh header file in a C compiler if you use printf function in your code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

In order to execute a function in program what is needed first to do so?

Before a function can be called the compiler needs to know the function's type and the number and type of its arguments to ensure the call is valid. This information is provided by the function declaration, which must be visible to the compiler prior to the point of the call (a forward declaration). With a two-pass compiler, the declaration may be placed before or after the call point. Ideally, function declarations should be placed in a header file, with the functions grouped in some logical manner. For instance, all string-handling functions may be declared in a "string.h" header. in this way, the programmer need only include the header to ensure the declarations are consistent across all translation units that require those declarations. In addition, all types required by the function must also be declared to the compiler. Again, these may be placed in a header to ensure the types are declared consistently.


Where system header files are stored in c?

This depends on what compiler you are using. For the most common compilers (including gcc) on a *nix system, most standard header files will be either in /usr/include or /usr/local/include. Check your compiler's documentation for how to check and/or modify the search paths.


What is the header file for swap function?

#include<stdio.h> Another answer: Nothing.


What is a header file and library function?

header files are predefined in c, they include the all necessary function to u to do your work easy instead of writing a function for printing a message or to read a input form key board we are using the library functions which are in the header files. there are different types of header files depending upon the requirement we use them.


Which library header is to make sqrt function?

#include <cmath> // simple version #include <complex> // complex version

Related questions

In order to execute a function in program what is needed first to do so?

Before a function can be called the compiler needs to know the function's type and the number and type of its arguments to ensure the call is valid. This information is provided by the function declaration, which must be visible to the compiler prior to the point of the call (a forward declaration). With a two-pass compiler, the declaration may be placed before or after the call point. Ideally, function declarations should be placed in a header file, with the functions grouped in some logical manner. For instance, all string-handling functions may be declared in a "string.h" header. in this way, the programmer need only include the header to ensure the declarations are consistent across all translation units that require those declarations. In addition, all types required by the function must also be declared to the compiler. Again, these may be placed in a header to ensure the types are declared consistently.


Where are the C header files in Linux?

The C header files are in the same place as other Unix and Unix-like systems: /usr/include if you installed the compiler.


Why is it necessary to include header files in C?

It isn't necessary to include header files in C. However, without the functionality provided by some header files, your program wouldn't be able to do very much that is useful.


Where system header files are stored in c?

This depends on what compiler you are using. For the most common compilers (including gcc) on a *nix system, most standard header files will be either in /usr/include or /usr/local/include. Check your compiler's documentation for how to check and/or modify the search paths.


What header file should be included if you are to develop a function that can accept variable number of arguments?

stdarg.h Before my original answer was removed and replaced with the above I suggested. Read the manual for your compiler the header files for each compiler are different. None of the compilers I currently use have a header file called "stdarg.h" but do have "varargs.h"


How do you correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.


Which number of header files available in c?

Just go to your compiler's include directory, and count the files, there can be dozens of them (Or hundreds. Or more.)


Can you edit the header files?

Yes, but if the header files were provided by the library/compiler implementation, you should not do that, as you can alter the designed behavior, or even break the library or compiler.


What is the header file for swap function?

#include<stdio.h> Another answer: Nothing.


What is a header file and library function?

header files are predefined in c, they include the all necessary function to u to do your work easy instead of writing a function for printing a message or to read a input form key board we are using the library functions which are in the header files. there are different types of header files depending upon the requirement we use them.


How do you include an user defined header file that is located in a directory?

Every header file is located in a directory. You use a compiler option (-I) to specify include directory to the compiler.Example:gcc -W -Wall -pedantic -I/my/favourite/directory -o prog.o -c prog.c


Why is your C plus plus compiler could not find the string object?

Probably because you haven't include the <string> header anywhere in the translation unit.