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;
}
|
© Copyright 2016 Alexander J. Quinn This content is protected and may not be shared, uploaded, or distributed.