Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!teddy!panda!talcott!harvard!seismo!brl-tgr!tgr!gwyn@Brl-Vld.ARPA From: Doug Gwyn (VLD/VMB)Newsgroups: net.lang.c Subject: Re: Array parameters Message-ID: <7087@brl-tgr.ARPA> Date: Tue, 8-Jan-85 09:07:21 EST Article-I.D.: brl-tgr.7087 Posted: Tue Jan 8 09:07:21 1985 Date-Received: Thu, 10-Jan-85 07:00:40 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 8 No, arrays cannot be passed as actual arguments to a function but only their addresses. function( a ) int a[5][6]; { ... } has just one pointer datum passed to it, not 30 ints. The difference is significant; due to C's "pass-by-value" design, in the actual case "function" can modify the caller's array while in the incorrect case (entire array as argument) it could only modify its own local copy of the array.