Jump to: navigation, search

Week 2

384 bytes added, 12:49, 19 May 2010
no edit summary
A function must have one point of entry and one point of exit. Only one return statement per function.
<u>The Include Statement</u>
''#include <stdio.h>''
The hash tag (#) tells the compiler how to do things '''BEFORE''' compilation.
The #include word keyword brings in the code from inside <stdio.h> Header files are usually definitions of functions, classes, templates, etc. <u>The Define Statement</u> A #define statement is a simple search and replace in the current file. ''#define SUM a+b'' ''printf("%d\n", SUM*2);'' This will print 50, not 60. It replaces SUM with a+b then operator precedence allows it to multiply first before addition.

Navigation menu