Possibly correct me?
Posted on 2004-10-06
I've just sat a test and got 28/30. However the two I got wrong don't seem just:
What does this do:
1) Array of 3 integers
2) 3 pointers to integers
3) 3 pointers to pointers
4) pointer to 10 integers
I said 3)
What causes the warning "myFunc must return a value":
1) The assumed return type void is missing
2) The return statement should return a NULL value
3) The return type is assumed to be an integer and that isn't returned
4) Compiler assumes a function with an integer argument must return an integer.
I said 2). However, 1 would also be ok... Since 2, is ok because return type void is then assumed. 1 is ok since then the return is assumed to be NULL...