Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Need Help Displaying of Infix to postfix conversion Date: Sun, 21 Aug 2016 15:43:09 -0700 Organization: None to speak of Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="2006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8RJdAMEX4/gen4qDoEV6y" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:g+iLqvVMb+t4rTVVXPfy+N40ZjE= sha1:MtaR6x3refbcfjP/wcJR7CDhXBU= Xref: csiph.com comp.lang.c:92569 BartC writes: > On 21/08/2016 10:47, Own IT wrote: [...] >> char pop() > > Use char pop(void) here. (Otherwise it won't work with some compilers.) Certainly char pop(void) is preferred to the old-style char pop(), but any conforming C compiler will accept the older form. (And of course `void main()` should be `int main(void)`.) [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"