Why am I getting Expected Identifier or '('?
I'm learning C and trying to write a very simple program. Here is my code:
#include <stdio.h>
int[] getNumbers( int x, int y, int z );
int main() {
int[] theNumbers = getNumbers(5,6,7);
return 0;
}
int[] getNumbers( int x, int y, int z) {
int[] numbers = { x, y, z };
return numbers;
}
I can't figure out what my issue is.
No comments:
Post a Comment