|
Example: the C compiler cannot compile this code:
#include <stdio.h> int main( ) { printf("%d\n", x); // Use x before it is defined } int x = 1234; |
The C compiler does not have the data type information on x when it was used !
This problem was fixed using: a variable declaration
The same issue exists with function definitions and function calls (= using a function)
|
DEMO: demo/C/set1/param2.c
|
DEMO: demo/C/set1/param2r.c
|
|
DEMO: demo/C/set1/param2r.c
|
DEMO: demo/C/set1/param2s.c