Page 1 of 1

Oh no this is really bad

PostPosted: Sun Jun 28, 2015 5:11 pm
by bat78
I've just discovered that gE's EiC C89 Interpreter doesn't support K&R C style function declaration/definition. :(
I mean yes it is obsolete but still valid in most recent days..

Re: Oh no this is really bad

PostPosted: Sun Jun 28, 2015 6:24 pm
by knucklecrunchgames
K&R?

They have an official book on c programming correct?

And please explain all that what you have written for dummys like me :P

Re: Oh no this is really bad

PostPosted: Sun Jun 28, 2015 7:14 pm
by bat78
knucklecrunchgames wrote:K&R?

They have an official book on c programming correct?

And please explain all that what you have written for dummys like me :P

k 1st, congratz to your 1k posts. From here it looks regal.

K&R are the authors of C and yes, they have a good book related to the C programming language, specifically version "K&R C".

The old way of function declaration and definition looks like this:
Code: Select all
void foo(arg1, arg2)
int arg1;
float arg2;
{
}


Which is equivalent to this:
Code: Select all
void foo(int arg1, float arg2)
{
}

Re: Oh no this is really bad

PostPosted: Sun Jun 28, 2015 8:58 pm
by knucklecrunchgames
Thanks for covering that up for me. And I just seen now that it's my 1000th post. (Although it's 1001)