Skip to content
Snippets Groups Projects
Commit 8ae9bef9 authored by Erik Strand's avatar Erik Strand
Browse files

Update i/o README

parent 00e7a3c4
No related branches found
No related tags found
No related merge requests found
# Basic Input
If you want to pass arguments to your program, you can add them to `main`.
These examples illustrate command line arguments, and reading a file.
```
demo@linux:03_inputs_and_outputs$ make
gcc -Wall -O3 -o add_integers add_integers.c
gcc -Wall -O3 -o read_file read_file.c
demo@linux:03_inputs_and_outputs$ ./add_integers 1 2
1 + 2 = 3
demo@linux:03_inputs_and_outputs$ ./read_file
This text is in a file.
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment