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?
Asked
Active
Viewed 677 times
-6

Hairi
- 3,318
- 2
- 29
- 68
-
2I guess `c` stands for _C programming language_ ;-) – Crozin Mar 11 '16 at 09:38
-
Perhaps what might be confusing for some people is that `.c` is lowercase whereas `C` is uppercase... – jotik Mar 11 '16 at 09:45
-
Is this.... Are you... Do you even... What am I reading? – Samidamaru Mar 11 '16 at 10:16
-
I am tempted to upvote that question. Because I like it ;). .c could, however, mean ***c**ompiler input* and .C *input for the bigger compiler* – tofro Mar 11 '16 at 10:26
-
The question contains the answer. – Jabberwocky Mar 11 '16 at 11:18
-
wrong way to get rep through question – Van Tr Mar 11 '16 at 14:12
2 Answers
9
The C in .c stands for C. C is the name of the C programming language.
-
4
-
2Indeed bolov. We can't verify that you didn't see that one coming if you don't cite any sources. – Mar 11 '16 at 09:41
-
-
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