Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Question about type casting Message-ID: <7095@brl-smoke.ARPA> Date: 15 Jan 88 13:54:49 GMT References: <5080009@hpfcdc.HP.COM> <5080010@hpfcdc.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <5080010@hpfcdc.HP.COM> boemker@hpfcdc.HP.COM (Tim Boemker) writes: > int A[1]; > ( (int [1]) A ) [0] = 0; >Why can't I cast an array as an array? The second `A' above is the NAME of an array. In this context it gets converted right away into a pointer to its first element. You cannot legitimately convert a pointer into an array.