Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > really terrible

Thread Tools

really terrible

Jordan Abel
Posts: n/a
On 2005-12-29, Keith Thompson <(E-Mail Removed)> wrote:
>> int main()

> Ok, but "int main(void)" is better.

This came up recently in ##c - As far as I can tell from reading either
standard, they mean the same thing in a function declarator that is part
of a function definition [only differing when it is not part of the
function definition]

[now, that's not to say that it's not labeled "obsolescent" by the
standard - i suspect that if it ever is _really_ deprecated, though, it
will be in favor of making it always mean (void), rather than making it
a syntax error.]
Reply With Quote
Jordan Abel
Posts: n/a
On 2005-12-29, Rahul Chandok <(E-Mail Removed)> wrote:
> Hi Raghu,
> sys/types.h is used as it contains the defination of time_t
> time_t is the return type of time() function.

time.h also includes that typedef.
Reply With Quote
Keith Thompson
Posts: n/a
"ash" <(E-Mail Removed)> writes:
> thankx dude,
> i really forget about random function, can u tell me how it works?
> thankx anyway
> ash

You haven't been following this newsgroup, have you?

If you expect us to be able to read what you write, use proper
capitalization and avoid silly abbreviations like "u" for "you".

Read <> and follow its advice.

There is no standard C function called "random". There is a rand()
function. To find out how it works, read your system's documentation.

Keith Thompson (The_Other_Keith) Removed) <>
San Diego Supercomputer Center <*> <>
We must do something. This is something. Therefore, we must do this.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Designing on VS.2003 is terrible =?Utf-8?B?xZ5lbm9sIEFrYnVsYWs=?= ASP .Net 6 03-18-2005 06:28 PM
Terrible behaviour of Cisco 5200! Neshat Cisco 4 08-19-2004 08:54 AM
TERRIBLE BUG IN ASP SERVER!!! Dannie Juge ASP .Net 4 12-19-2003 08:27 PM
resizing image has terrible quality neverstill ASP .Net 6 12-17-2003 08:45 PM
terrible Broken pipe, please HELP!! Tomas Penc Java 3 10-24-2003 09:22 AM