Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/26/83; site ihuxa.UUCP Path: utzoo!linus!decvax!harpo!floyd!vax135!ariel!hou5f!hou5e!hou5d!hogpc!houxm!ihnp4!ihuxa!dixon From: dixon@ihuxa.UUCP Newsgroups: net.lang.c Subject: Re: mixing pointers and arrays Message-ID: <263@ihuxa.UUCP> Date: Sat, 30-Jul-83 18:11:50 EDT Article-I.D.: ihuxa.263 Posted: Sat Jul 30 18:11:50 1983 Date-Received: Mon, 1-Aug-83 08:55:07 EDT Organization: BTL Naperville, Il. Lines: 17 1.) The routine stat() placed the binary values for 'y', 'e', 'a', and 'r' (NOT necessarily in that order) in the global storage location yytext that was defined for the global area yytext. In the printf() statement the *yytext argument instructed the system to get the contents at the location given by the value in yytext. For the binary values of 'y', 'e', 'a', and 'r' this is a VERY large number (assuming unsigned for character pointers). Much larger than the amount of memory you are apt to have on a VAX 780 system. 2.) If you wanted to print a string of characters using a pointer to that string, then you should use printf("%s\n",yytext); rather than printf("%s\n",*yytext); since yytext has been declared to be a pointer to a charcter string.