| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 3 Jun 1996 17:54:03 -0400 |
| From: | dj (DJ Delorie) |
| Message-Id: | <199606032154.RAA06270@delorie.com> |
| To: | halibut AT kuhub DOT cc DOT ukans DOT edu |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <1996Jun3.144827.120718@kuhub.cc.ukans.edu> (halibut@kuhub.cc.ukans.edu) |
| Subject: | Re: Beginners srand error |
> void main()
> {
> srand(time(NULL));
> int num;
> }
>
> Anyone know why?
If this is a C program, it's because you can only declare variables at
the start of a block.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |