1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <stdio.h>

void printX(int x) {  // x is an argument   (sometimes called a parameter)

    printf("%d\n", x);  // '\n'  ==>  10;  just like 'A'  goes to 65
                        //  \ is special to compiler.  % mostly is not in a string.
}

int main(int argc, const char *argv[])
{
    int a = 5;   // a is a "local variable"
    printX(a);
    return 0;
}

This content is protected and may not be shared, uploaded, or distributed.    © 2019 Alexander J. Quinn.