Wat is nou precies het verschil tussen 'gewoon(?)' C en Ansi C?
Ik heb al gezocht, maar ik kan nergens vinden wat precies het verschil is.
Ik heb al gezocht, maar ik kan nergens vinden wat precies het verschil is.
iPhone 15 Pro Max Titanium Black 256GB - iPad Pro 2018 12.9" Space Gray 64GB - MacBook Air M4 13" 16GB/512GB - AirPods Pro 3 - Watch 5 Space Gray LTE - TV 4K 128GB - TV 4 64GB - Wireless CarPlay
1
2
3
4
| int f(int a, double b)
{
...
} |
1
2
3
4
5
6
| int f(a, b)
int a;
double b;
{
...
} |
1
2
3
4
| for (int i = 0; i < max_index; i++)
{
...
} |
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Man hopes. Genius creates. Ralph Waldo Emerson
Never worry about theory as long as the machinery does what it's supposed to do. R. A. Heinlein
Nee hoor, K&R gingen er heel vroeg al van uit dat C voor portability moest zorgen. Ik heb bij Bell Labs met de originele K&R docs gewerkt, en daar hadden ze het er al over dat er meerdere machines waren waar C op draaide, 16 en 32 bits (en 36)Verwijderd schreef op 11 september 2002 @ 22:23:
Was ANSI C niet bedoeld om het porten naar andere platforms te waarborgen?
Man hopes. Genius creates. Ralph Waldo Emerson
Never worry about theory as long as the machinery does what it's supposed to do. R. A. Heinlein