Code · 2 files
Sample C Files
C is the portable systems language underneath most operating systems and runtimes. The C sample is a small program — a customer record, a VIP check and a formatted total — that is the same in every language we offer, so you can compare them side by side.
All 2 c files
Download all with curl
# 2 files, 269 KB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/code/c/sample.c
https://files.samplefiles.com/code/c/sample-10000-lines.c
EOF| File | Size | Details | Download |
|---|---|---|---|
| Sample C filesample.c | 783 B | Download | |
| Large C file (about 10,000 lines)sample-10000-lines.c | 268 KB | 9,999 lines | Download |