I'm new to C (well, RUSTY in C at least) and I'm working on some pre-ANSI C code in Visual Studio 2010. It compiles fine, but Intellisense is going crazy over the function declarations:
int add()
int a, int b;
{
return a + b;
}
instead of the ANSI
int add(int a, int b)
{
return a + b;
}
But I'm running into a few instances of arrays with bounds in function declarations, and I don't think that can be converted directly to ANSI C.
int add()
int a[5], int b[5];
{
...
}
The below compiles cleanly, but does this mean the exact same thing?
int add(int a[5], int b[5]) {
}