### 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.....
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.
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.
#include<stdio.h> Another answer: Nothing.
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.
#include <cmath> // simple version #include <complex> // complex version
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.
The C header files are in the same place as other Unix and Unix-like systems: /usr/include if you installed the compiler.
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.
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.
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"
You need to #include the header file that contains the missing function's declaration.
Just go to your compiler's include directory, and count the files, there can be dozens of them (Or hundreds. Or more.)
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.
#include<stdio.h> Another answer: Nothing.
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.
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
Probably because you haven't include the <string> header anywhere in the translation unit.