Function on a variable declaration

Since the statement began with a type specifier, namely int, then it suggests declaration. Thus what follows is a bunch of comma separated list of identifiers.

n being a single int variable.

array being an array of int.

getint being a function that returns an int and has one parameter that is an int pointer. It is unnamed and that is not important because this is a function declaration/prototype.


It's not calling the function; it's declaring its prototype. It's equivalent to:

int n;
int array[SIZE];
int getint(int*);

Tags:

C