What's the difference between the way these two functions are declare and how does the second work?
function(int x, int)
{}
function(x,y)
int x,y;
{}
What's the difference between the way these two functions are declare and how does the second work?
function(int x, int)
{}
function(x,y)
int x,y;
{}
Both work the same, but the second one is old style.
The difference is simply the style, lambs4. They are functionally identical. The first style is the commonly used ANSI C style, and the second is the older, pre-ANSI, C style. In both cases, function accepts two arguments, both of which are integers.
Jason Deckard