Microsoft 'C' - Strange behaviour with doubles

Robert L. Fair cim2 at pyuxv.UUCP
Sun May 4 10:39:51 AEST 1986


Consider an array of 15 pointers to arrays of doubles:

	double (*parray[15])[];

The following code to 'malloc' the actual double array barfs on Microsoft 'C',
with a 'different levels of indirection' warning on the '='.
The code passes through LINT, and compiles OK on UN*X 5.2

	char	*malloc();

	parray[0] = (double*)malloc((unsigned)sizeof(double)*75);

Microsoft produces the same error if the coercion is (double**), (double),
or nothing at all !

Any ideas ?

Rob. Fair
{ihnp4|gamma|bambi}!pyuxv!cim2

Bell Communications Research
Piscataway
New Jersey

Subject: 
Newsgroups: general



More information about the Comp.lang.c mailing list