www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/08/12:00:56

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with Definition: int p=0,d[4]
Date: 8 Nov 1996 15:46:02 GMT
Organization: Oxford University, England
Lines: 24
Message-ID: <55vkjq$40q@news.ox.ac.uk>
References: <847448023 DOT 11346 DOT 0 AT ciscs19 DOT demon DOT co DOT uk> <55vc7n$t9e AT news DOT ox DOT ac DOT uk>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

George Foot (mert0407 AT sable DOT ox DOT ac DOT uk) wrote:

: int p,d[4];
: it declares 'p' to be an 'int' and 'd' to be a pointer to 5 'int's.

and again:

: int p=0,d[4];
: declares 'p' as and 'int' and sets it to zero, and also declares 'd' to 
: be a pointer to 5 'int's. It's the same as:

Arrgghhhhh!!! Sorry, I meant 4 ints both times.

--
George Foot

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |""""""""""""""""""""""|
>Email: george DOT foot AT merton DOT ox DOT ac DOT uk      < |Snail Mail:(*)        |
>   or: mert0407 AT sable DOT ox DOT ac DOT uk          < | _     George Foot    |
>  Web: http://users.ox.ac.uk/~mert0407/ < |(@)    Merton College |
>  Ftp: mc31.merton.ox.ac.uk (#)         < |~~~~   Oxford OX1 4JD |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ |______________________|
(#) Theoretically...    ||    (*) Please allow 28 days for delivery

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019