"santosh" <santosh.k83@gmail.com> writes:[color=blue]
> Comp.Lang.c wrote:[color=green]
>> Hello Sir,
>> I know ...[/color]
>
> Quote context if you're serious about participating in this newsgroup.
> Read the following:
>
> <http://cfaj.freeshell.org/google/>
> <http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
> <http://www.safalra.com/special/googlegroupsreply/>
> <http://en.wikipedia.org/wiki/USENET>
>[color=green]
>> void main returns int.[/color]
>
> Under a conforming implementation main() returns an int and only an int
> at all times. void main() is invalid.[/color]
That's not *quite* true. The standard allows an implementation to
define other forms for main(), but only
int main(void)
and
int main(int argc, char **argv)
are guaranteed to be portable (for hosted implementations), and
there's practically never a good reason to use void main().
[color=blue][color=green]
>> Iam niranjan podduturi.
>> Iam from Hyderabad/India[/color]
>
> Who the hell cares what you're name is or where you stay. Confine your
> posts to this group to ISO C.[/color]
Perhaps you could have expressed this with a bit more subtlety. The
OP needs to learn a few things about this newsgroup, and about Usenet
in general, but there's no need to be rude about it.
--
Keith Thompson (The_Other_Keith)
kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.