Working in c

Author
Discussion

torqueofthedevil

Original Poster:

2,074 posts

177 months

Sunday 13th April 2014
quotequote all

Crafty_

13,283 posts

200 months

Sunday 13th April 2014
quotequote all
torqueofthedevil said:
<div>
</div>
#include posttext.h


hehe

sorrygetmecoat

Sexual Chocolate

1,583 posts

144 months

Tuesday 15th April 2014
quotequote all
\#include <posttext.h>

int main()
{
return 0;
}

Goaty Bill

1,779 posts

151 months

Wednesday 16th April 2014
quotequote all
to3m said:
You may be thinking of C++. Perhaps we should start a different thread to discuss that subject? smile
Better still, let's migrate the whole thing to Java biggrin

Sexual Chocolate

1,583 posts

144 months

Wednesday 16th April 2014
quotequote all
Goaty Bill said:
to3m said:
You may be thinking of C++. Perhaps we should start a different thread to discuss that subject? smile
Better still, let's migrate the whole thing to Java biggrin
public class EmptyPost {

public static void main(String []args) {
System.out.println("");
}
}

There you go. Who do I send my invoice over to?

to3m said:
Please see section 5.1.2.2.1 of the C standard. It seems that main shall be declared as taking either (void) or (int,char *[]).

You may be thinking of C++. Perhaps we should start a different thread to discuss that subject? smile
C99 5.1.2.2.1 - Program startup - clearly says "int main(void)", "int main(int argc, char *argv[])" or equivalent; or in some other implementation-defined manner. Therefore it's 100% valid C if the implementation allows for it. The only thing it's not is a strictly conforming program according to the standard

Edited by Sexual Chocolate on Wednesday 16th April 11:21


Edited by Sexual Chocolate on Wednesday 16th April 11:22

to3m

1,226 posts

170 months

Sunday 20th April 2014
quotequote all
Yes, you appear to be correct - and I'm now unsure what I was thinking.

I have deleted my posting in order to halt the spread of such misinformation wink