www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/12/02:31:46

From: malcolmj7 AT aol DOT com (MalcolmJ7)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A very basic question about C programming... diary of a newbie Part 1
Lines: 38
Message-ID: <1998081206211700.CAA19663@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
Date: 12 Aug 1998 06:21:17 GMT
Organization: AOL http://www.aol.com
References: <SS9A1.434$vq2 DOT 881313 AT newse2 DOT tampabay DOT rr DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

first off, prototyping isn't the most useful thing in the world.  When you
prototype you just declare the function before actually writing it.

It doesn't have to be void.
for example,

int runfunction();   //prototype

void main()
 {
 .
 .
}

int runfunction()  //actual function
 {....}
//end

this is the same as before, but without prototyping.

int runfunction()  //actual function
 {....}

void  main()
 {
 .
 .
 .
 }

//end





Malcolm
malcolmj7 AT aol DOT com

- Raw text -


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