Home > Back-end >  Novice C language bosses come in, in
Novice C language bosses come in, in

Time:03-16

C language header files (.h files) and source files (. C files) can be compiled
This sentence is right or wrong

CodePudding user response:

Right!

In general, the header file belongs to some structure, type, even including the declaration and definition of constants, compile time are used,

And file extension is not must be h and c and h file inside I don't put the main function, so c file can be compiled to run
File extension up what operating system to recognize can casually, so join into the project file to compile,

CodePudding user response:

Fun
reference 1 floor response:
right!

In general, the header file belongs to some structure, type, even including the declaration and definition of constants, compile time are used,

And file extension is not must be h and c and h file inside I don't put the main function, so c file can be compiled to run
File extension up what operating system to recognize can casually, so join into the project file to compile,

Thank you very much!! To understand