Skip to content

Commit 0b396d9

Browse files
authored
Create C_Files.md
File Types in the C Universe
1 parent 9dd0a09 commit 0b396d9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# File Types and extensions in C
2+
3+
## Source
4+
> [!TIP]
5+
> **.c** | **C** source \
6+
> **.cpp** | **C++** source
7+
8+
9+
You could use code_source.banana, but it's not usefull since:
10+
> [!CAUTION]
11+
> the file extension defines features like\
12+
> syntax-highlighting and\
13+
> default application to use with file.
14+
15+
## Header
16+
> [!NOTE]
17+
> header-files contain information on how to use functions and variables from other files or libraries
18+
19+
> [!TIP]
20+
> **.h** | C/C++ headers
21+
22+
> [!IMPORTANT]
23+
> `#include <file.h>` searches for _file.h_ in system\
24+
> `#include "file.h"` searches for _file.h_ in folders relative to source/header file
25+
26+
## Objects and libraries
27+
> [!NOTE]
28+
> **.o** | object file (compiled) \
29+
> **.a** | static library \
30+
> **.so** | dynamic library (**s**hared **o**bject)
31+
32+
## Other file types
33+
> [!NOTE]
34+
> **.elf** | compiled elf format \
35+
> **.hex** | compiled intel hex format \
36+
> **.bin** | compiled binary

0 commit comments

Comments
 (0)