Topic: help needed !


Author: isc10292@leonis.nus.sg (Lim Wee Sin)
Date: 6 Nov 1993 11:36:49 GMT
Raw View
anyone knows what is wrong with this line of code ?

int ((*(*A)[10]))[10]);
void f(int ((*(*x)[10]))[10]);

i was trying to declare a function f that returns nothing and take a
pointer to an array of 10 pointers to array of 10 int.
there was no error msg for the statemet before this, that declare a variable
A having the same type.

i have tried with various compiler and these are the error messages given.

AT&T C++ v2.1
-------------
"conv3.c", line 7: error:  argument type expected for b()

g++ v2.3.2
----------
conv3.c:7: `x' undeclared, outside of functions
conv3.c:7: bad parameter list specification for function `b'

SunOS 4.1 C compiler
---------------------
"conv3.c", line 7: syntax error at or near type word "int"
"conv3.c", line 7: function returns illegal type
"conv3.c", line 7: syntax error at or near symbol )


 thanks for any help.

weesin
email : limweesi@iscs.nus.sg