[net.unix-wizards] Why C is not much better than Pascal

grunwald (09/20/82)

#R:sri-unix:-331800:uiucdcs:13700009:000:302
uiucdcs!grunwald    Sep 17 12:19:00 1982

  From what little C I know, I would do that example:

double norm(n, matrix)
int	n;
double	**matrix;
{
	/* code */
}

Within the procedure one can refer to the elements as "matrix[i][j]".
To use this, say:

main()
{
double	mat[100][100]

	y = norm(100,mat);	/* pass # elements, pointer to matrix */
}