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
Download 2 files (269 KB)Shell
# 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
FileSizeDetailsDownload
Sample C filesample.c783 BDownload
Large C file (about 10,000 lines)sample-10000-lines.c268 KB9,999 linesDownload