The header file for random functions ( like rand(), srand() ) is stdlib.h in C and cstdlib in C++.
Header files are used to have declarations. It is simple to include a single header file than writing all the needed functions prototypes.
No. Header files are those which contains declaration part of function & library files are those which contains definition part of function. These are those functions which we called in our program by using header files.
the use of header files is to add functionality. Header files are basically saying put code in that header file here so you don't have to type that many lines of code.
stdio.h
Usually declared only-oops.
All functions are included without graphics.h.The graphic parameters will not be included.
No, main.c does not require a header file. When you have a ".c" and ".h" pair, the ".h" file is to declare the existence of functions that are defined in the ".c" files so that these functions can be called in other files. since "main.c" needs the headers of the other modules (to access their data types and functions) but usually doesn't have a header file itself.Header files aren't "called", they are "included",but usually not inside any function.
Java does not require header files like C/C++.
Rephrase your question so it is comprehensible.
Loads of them. Consult your help, or load these headers into a text-editor.
They declare library functions They contain macro definitions They contain type definitions
Header files allow a C source file to use functions in other C files or library files. The linker ignores the fact that these functions are not defined in C source code, assuming that they'll be defined somewhere else. "stdlib" offers prototypes for many functions that deal with string conversion, pseudo-random number generation, dynamic memory management, program environment, integer math and other functions not available within the C standard. See the related link below for a list of function prototypes offered by stdlib.h.