Can static variables be declared in a header file?You can't declare a static variable without defining it as well (this is because the storage class modifiersstatic and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause each source file that included the header
Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).
i can't answer it
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.
There is no system header called share.h, but if there were, it would be: #include <share.h>
Can static variables be declared in a header file?You can't declare a static variable without defining it as well (this is because the storage class modifiersstatic and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause each source file that included the header
Yes (but usually it is a bad idea).
The header file of graphics in TurboC is graphics.h
Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).
The source file must include the header file. Beyond that we can only guess at the problem without seeing the content of the source and header files. Do not post the files here. Such questions are better handled by the many C programming forums available elsewhere on the Internet.
Not possible. Always make backup copies.
Yes, it is a plain text file.
Header files are not much different from usual cpp files. There are basically two different things. It's file extension: you need to choose "header file" when you create it or save as .h file. Second is header files do not have main() function. When you are done with you header file do not forger to include it in your project by writing preprocessor directive:#include "your_header_file.h"
stdbool header file use for a new data type that is boolean value
i can't answer it
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.
A header file contains declaration of something (constants, classes, ...), usually ends with a .h or hpp extension.A DLL (dynamically linked library) is a binary file (with .dll, .ocx, .a, ... extentions), containing functions, resources, ... and can be linked to your program at run-time. In order to use a DLL you need to include the corresponding header file, which declares things in the DLL, so that your program gets compiled. The DLL file is automatically loaded (by system) at run-time when your executable program invokes functions and asks for resources.A library file (also called static library, with .lib extension usually) is a binary file which also contains functions and variables like DLL, but resolved at compile-time, meaning they need to be provided at link-time.Dynamic and static libraries are often provided together with header file (but no source file, which contains the implementation) when the provider lets you use his/her functions/services but doesn't give you access to the implementation.