473,785 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FAQ incorrect?

In the faq for this group:

Q: What's the correct declaration of main()?

A: There are two valid declarations:

int main(void)
int main(int argc, char **argv)

although they can be written in a variety of ways. The second parameter
may be declared char *argv[] (see question 6.4), you can use any names
for the two parameters, and you can use old-style syntax:

int main()

int main(argc, argv)
int argc; char **argv;

.......... http://c-faq.com/ansi/maindecl.html

The way this is worded it makes one think that "int main()" is a valid
declaration of main. However, main is allowed to only take two params
of (int, char **) or 0, correct? In C is not an empty param list an
"unspecifie d" param list? In that case "int main()" would be invalid
as it matches neither of the standard signatures.

Another faq claiming to represent this group has the following text for
the same Q:

A: Either int main(), int main(void), or int main(int argc,
char *argv[]) (with alternate spellings of argc and *argv[]
obviously allowed). See also questions 11.12b to 11.15 below.

References: ISO Sec. 5.1.2.2.1, Sec. G.5.1; H&S Sec. 20.1 p.
416; CT&P Sec. 3.10 pp. 50-51.

............... http://www.faqs.org/faqs/C-faq/faq/

It also has "int main()" but has no reasoning for its validity except
ref to the std I don't have access to. Is that truely a valid
signature? I always thought you _needed_ (void).

Aug 4 '06
49 1709
Default User said:
Richard Heathfield wrote:
>Rod Pemberton said:

[who cares]
>You are easily amused.


Why feed the troll?
Unlike you, I am not yet convinced that Rod Pemberton is a troll. As I said
back in May:

'It is possible that "troll" is the wrong word for Mr Pemberton, but our
experience of him here in clc has not been a pleasant one. He has certainly
not endeared himself to the group. Many of the people you would probably
consider to be "good posters" have killfiled him. Even amongst those who
have not, I don't know of any who would be particularly keen to sing his
praises. If you want to understand why people here have a certain antipathy
to Mr Pemberton, you could do worse than to research his posting history in
this newsgroup. In my estimation, such research would explain to you why
people are labeling him "troll" (whether or not that label is, strictly
speaking, accurate - which in my view it probably is not).'

I've seen little or nothing since then to make me more, or less, convinced
that Rod Pemberton is trolling the group.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 8 '06 #41
Dann Corbit posted:
I also have a friend who has 500,000 lines of code perfectly memorized
in his head. He's at the other end of the spectrum.

I'd love to have mental abilities like that!

(I ask this respectfully:

People who have mental abilities like that; are they invariably people
who present some sort of (detrimental) psychological or mental condition?

Just curious. I've seen films like "Rain man" and so forth, but I've never
heard of anyone who had superior mental capabilities and who didn't present
with a condition such as autism.

--

Frederick Gotham
Aug 8 '06 #42
Frederick Gotham said:
Dann Corbit posted:
>I also have a friend who has 500,000 lines of code perfectly memorized
in his head. He's at the other end of the spectrum.


I'd love to have mental abilities like that!

(I ask this respectfully:

People who have mental abilities like that; are they invariably people
who present some sort of (detrimental) psychological or mental condition?
I'd have said that the ability to memorise half a million lines of code
indicates a /good/ mind, not a bad one.
Just curious. I've seen films like "Rain man" and so forth, but I've never
heard of anyone who had superior mental capabilities and who didn't
present with a condition such as autism.
I invite you to consider Einstein, Newton, Galileo, da Vinci, Avogadro,
Dalton, Boyle, von Neumann, Feynman, Boole, Shannon, Faraday, Gauss,
Franklin, Cantor, Hilbert, Fermat, Turing, Darwin, Snell, Tesla, Curie,
Davy, Euler, Abel, Lorentz, Feigenbaum, Oppenheimer, ...

Is it your contention that /all/ these people suffered from autism?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 8 '06 #43
Richard Heathfield wrote:
Default User said:
Richard Heathfield wrote:
Rod Pemberton said:
[who cares]
You are easily amused.

Why feed the troll?

Unlike you, I am not yet convinced that Rod Pemberton is a troll.
Wow.

Brian

Aug 8 '06 #44
Richard Heathfield posted:
>Just curious. I've seen films like "Rain man" and so forth, but I've
never heard of anyone who had superior mental capabilities and who
didn't present with a condition such as autism.

I invite you to consider Einstein, Newton, Galileo, da Vinci, Avogadro,
Dalton, Boyle, von Neumann, Feynman, Boole, Shannon, Faraday, Gauss,
Franklin, Cantor, Hilbert, Fermat, Turing, Darwin, Snell, Tesla, Curie,
Davy, Euler, Abel, Lorentz, Feigenbaum, Oppenheimer, ...

Is it your contention that /all/ these people suffered from autism?

No. I expressed that I knew very little about people who had superior
mental capabilities, and then I inquired if such superior mental
capabilities are reserved only for those who have some sort of
mental/psychological condition. It was a genuine inquiry.

I was not referring to actual intelligence by the way, but rather
"superhuman " capabilities such as memorising half a million lines of code,
or calculating 478 to the power of 5 within a few seconds.

There are indeed some great minds among the people you listed above, but
how many of them had "superhuman " mental powers, such as memorising half a
million lines of code?

--

Frederick Gotham
Aug 8 '06 #45
Frederick Gotham said:

<snip>
I was not referring to actual intelligence by the way, but rather
"superhuman " capabilities such as memorising half a million lines of code,
or calculating 478 to the power of 5 within a few seconds.
24953960486368 - what's so hard about that?
There are indeed some great minds among the people you listed above, but
how many of them had "superhuman " mental powers, such as memorising half a
million lines of code?
I think we have to take the "half a million lines" thing with a pinch of
salt. After all, imagine how long it would take to verify. You could do
some random sampling, of course, to give you some confidence in the
veracity of the claim, but until you'd tested him on the whole
half-million, would you really believe the claim entirely? And even if you
could verify it at a line a second, spending eight hours a day on it, it
would still take well over a fortnight to do.

I would be more inclined to accept the claim if we interpret it as "knows
the half-million-line code base so well that, asked about any given aspect
of the code, he can take you to the relevant function(s) very quickly".

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 8 '06 #46
Frederick Gotham <fg*******@SPAM .comwrites:
[...]
No. I expressed that I knew very little about people who had superior
mental capabilities, and then I inquired if such superior mental
capabilities are reserved only for those who have some sort of
mental/psychological condition. It was a genuine inquiry.
And I'm sure there are newsgroups where that question would be
topical.

--
Keith Thompson (The_Other_Keit h) ks***@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.
Aug 8 '06 #47

In article <4j************ @individual.net >, "Default User" <de***********@ yahoo.comwrites :
Richard Heathfield wrote:
Default User said:
Richard Heathfield wrote:
>Rod Pemberton said:
>
[who cares]
>
>You are easily amused.
Why feed the troll?
Unlike you, I am not yet convinced that Rod Pemberton is a troll.

Wow.
I can see that some might want to distinguish between those who
primarily seek to disrupt the newsgroup - whom I would label "troll"
- and those who are merely arrogant, ignorant asses prone to vapid
arguments, such as Rod.

I imagine the real trolls, such as Kenny, are often hard-working folk
dedicated to producing content-free flame-bait posts, and they might
feel slighted by a comparison with others who are honestly, if
clumsily, trying to carry on a real argument. For that matter,
couldn't lumping the two groups together be considered much the sort
of gross generalization that Rod himself committed with his
entertainingly stupid "programmer s in the US are failed physicists"
claim?

I imagine many of us[1] arrogant, somewhat-informed asses would not
want to be casually thrown in either of the previous two groups -
should we not show them the same courtesy?

Of course, that's not necessarily any reason to read Rod's postings.
I just offer it as a possible justification for the distinction
Richard is drawing.
[1] The inclusivity or exclusivity of this plural first-person
pronoun is left to the discretion of the reader.

--
Michael Wojcik mi************@ microfocus.com

The lecturer was detailing a proof on the blackboard. He started to say,
"From the above it is obvious that ...". Then he stepped back and thought
deeply for a while. Then he left the room. We waited. Five minutes
later he returned smiling and said, "Yes, it is obvious", and continued
to outline the proof. -- John O'Gorman
Aug 9 '06 #48
CBFalconer wrote:
Frederick Gotham wrote:
Default User posted:
Not actually a new thread, at least for most of us. It's a change
in subject in an existing thread.
I just clicked "Reply", and then changed what was written in the
"Subject" textbox... didn't think it would have an effect on
threading?

It doesn't, in proper news readers that use the 'references' header
field correctly. Some stupid systems, such as Google, ignore that
field and depend on the subject header alone.
actually google fixed that some time ago
--
Nick Keighley

Aug 10 '06 #49

"Default User" <de***********@ yahoo.comwrote in message
news:4j******** ****@individual .net...
Dann Corbit wrote:
"Rod Pemberton" <do*********@bi tfoad.cmmwrote in message
news:11******** *****@dscnews2. dcccd.edu...
What people do you think become programmers in the US? Do you
understand that it is the people who have no chance of entering a
higher paid field: physicist, mathematician, electrical engineer,
or architect, etc... that become computer programmers?
I have worked with hundreds of programmers who get over $100/hour.
Remember that Pemberton is a troll.
Mr. Rodenborn it appears you _still_ don't know the difference between a
troll (someone who intends to incite for the joy of a negative response) and
someone stating the facts of their experiences (which may be totally
different to yours or even radical or unacceptable from your narrow
perspective...) .
You're better off killfiling or at least ignoring his rants.
Are you able to do so without comment? It appears not. From your Google
post history, the entire world is comprised of trolls, except one: you.
Rod Pemberton
Aug 11 '06 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
14400
by: Michelle Hillard | last post by:
Hi guys, would appreciate if you can shed some light on this. Sorry to be a pain, can you tell me what is wrong with the following: for /F %%i in ('dir /b /on c:\bcp\pc*.txt') do bcp Inventory..pc in %%i -fc:\bcp\bcp.fmt -T -S CHICKYy where CHICKYy is the server bcp.fmt
2
1280
by: Linda Wienholt | last post by:
I have two usercontrols on the home page of my website. They are intermitently sending incorrect HTML to the browser, which results in a textbox being rendered with the wrong width. Either both controls render correctly or both are incorrect but never a mixture. When they are rendered correctly the source looks like <input name="Header2:txtKeyword" type="text" id="Header2_txtKeyword" style="width:80px;" / When incorrect the source looks...
1
3931
by: murphy | last post by:
Hi, I've been seeing two symptoms with my asp.net site that have started recently after a long period of smooth running. As others on our team make changes to referenced dll's I find that I get the following errors from time to time. Apparently the following procedure alleviates the problems: -Reboot (clears locks on following directory)
3
3350
by: murphy | last post by:
Hi, I've been seeing two symptoms with my asp.net site that have started recently after a long period of smooth running. As others on our team make changes to referenced dll's I find that I get the following errors from time to time. Apparently the following procedure alleviates the problems:
4
2757
by: Peter Ritchie | last post by:
Does anyone know how to suppress a specific warning for a line or block of code in C#? C++ has a nice facility to disable a warning for a block of code with #pragma for warnings that are incorrect or don't apply. For example, the following code generates an CS0628 because CS0628 makes an incorrect assumption that "protected" applies only to inheritance: public sealed class Class { EmbeddedClass utility = new EmbeddedClass();
6
2648
by: ypjofficial | last post by:
HI, I have following terrific confusion. class test { public: int i; int * j; int **k;
2
4858
by: mankolele | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Simple Database Connection</title> </head> <body bgcolor="white"> <?php $connection = mysql_connect("localhost", "root", "phpmysql"); $select_db = mysql_select_db("procdumy", $connection);
6
8600
by: trevor | last post by:
Incorrect values when using float.Parse(string) I have discovered a problem with float.Parse(string) not getting values exactly correct in some circumstances(CSV file source) but in very similar circumstances(XML file source) and with exactly the same value it gets it perfectly correct all the time. These are the results I got, XML is always correct, CSV are only incorrect for some of the values (above about 0.01) but always gives the...
1
2405
by: ndawg123 | last post by:
Hey guys what im trying to do is write a yatzee game with C. And im stuck already and its the start?!?! I want the user to type there 5 numbers. i.e My program so far does this Please enter dice Values:
0
8330
by: roamnet | last post by:
hi i created database file with .mdf extention ,sql server as a source and use grid view to display data there're no problem in data retrieve and display,but i want to edit it or insert new records there is an error "Incorrect syntax near '-'. Must declare the scalar variable "@UserName". I worked out in design view,code is automatically generated.Iam not able fix the error. Iam working with Visual Web Developer-2005 Express Edition
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9954
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8979
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.