-6

I wasnt abe to find the meaning of the extension .c of the source files in C language. If the extension .h stands for header, then what .c stands for?

Hairi
  • 3,318
  • 2
  • 29
  • 68

2 Answers2

9

The C in .c stands for C. C is the name of the C programming language.

2

"The C in .c stands for C. C is the name of the C programming language", as Zoidberg said in his answer.

However, it should be noted that this is a convention, i.e. to name C source files with a .c extension. It could have been anything, but choosing ".c" makes common sense and everyone uses it. Even compilers and IDEs default to looking for .c files for C source files. As it is a "common sense" convention, it does not need to be documented. The container (the filename) is not described in the standard.

It would have been a common sense convention too to name them .KnR (why not).

Paul Ogilvie
  • 25,048
  • 4
  • 23
  • 41