Difference between "char *arr" and "char arr[]"

Erik Naggum enag at ifi.uio.no
Mon Sep 24 07:11:12 AEST 1990


Let me venture a concise explanation to this difference:

	extern char *arr	declares an object, containing a
				pointer to a character

	extern char arr[]	declares a constant pointer to a
				character

Hope this helps.
--
[Erik Naggum]		Naggum Software; Gaustadalleen 21; 0371 OSLO; NORWAY
	I disclaim,	<erik at naggum.uu.no>, <enag at ifi.uio.no>
  therefore I post.	+47-295-8622, +47-256-7822, (fax) +47-260-4427



More information about the Comp.lang.c mailing list