473,544 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

int main(void) is better than int main()

read the subject it says it all

int main(void) is better than int main()
Jan 2 '08 #1
36 3950
x_********@hotm ail.com wrote:
read the subject it says it all

int main(void) is better than int main()
Why?
Jan 2 '08 #2
x_********@hotm ail.com wrote:
read the subject it says it all

int main(void) is better than int main()
There is no difference.

Jan 2 '08 #3
x_********@hotm ail.com wrote:
read the subject it says it all
your point being...?
Jan 2 '08 #4
Lars Uffmann wrote:
x_********@hotm ail.com wrote:
>read the subject it says it all

your point being...?
His point being he is a troll.

--
Jim Langston
ta*******@rocke tmail.com
Jan 2 '08 #5
On Jan 2, 9:34 am, x_knife...@hotm ail.com wrote:
read the subject it says it all

int main(void) is better than int main()
That assumes you have noticed a difference then.
Jan 2 '08 #6
You are not a troll. The quest for knowledge is not troll-ish.
On Jan 2, 9:34*am, x_knife...@hotm ail.com wrote:
read the subject it says it all

int main(void) * * * *is better than * * * int main()
Jan 2 '08 #7
Bill - Cincinnati, OH USA wrote:
On Jan 2, 9:34 am, x_knife...@hotm ail.com wrote:
>read the subject it says it all

int main(void) is better than int main()
You are not a troll. The quest for knowledge is not troll-ish.
He did not ask a question, he made a statment. One that is contradictory to
common knowledge.

If he had asked which is better, then that is different. He is a troll.
--
Jim Langston
ta*******@rocke tmail.com
Jan 2 '08 #8
On Wed, 2 Jan 2008 06:34:45 -0800 (PST), x_********@hotm ail.com wrote
in comp.lang.c++:
read the subject it says it all

int main(void) is better than int main()
Read the body, says it all:

*plonk*

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Jan 2 '08 #9
On Jan 2, 3:46 pm, Rolf Magnus <ramag...@t-online.dewrote:
x_knife...@hotm ail.com wrote:
read the subject it says it all
int main(void) is better than int main()
There is no difference.
As far as the compiler is concerned, no. As far as anyone who
reads the code is concerned, the first marks you as a C hacker,
who doesn't understand C++.

(FWIW: even the C experts find the first an abomination. To be
lived with in C, because there's no other alternative.)

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jan 2 '08 #10

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

Similar topics

10
2390
by: Frederick Ding | last post by:
Hi, guys! I met a problem: Should I use "int main()" or "int main(void)", is that a kind of "style" problem? And which is the standard C99 recommend? If it's a "style" one, where can I get the standard or nearly standard C style? K&R or what?
6
2520
by: rahulsinner | last post by:
Hello everyone, I have noticed everyone using "int main(void)".But doesnt the standard pronounces it as "int main(int argc,char *argv)".And if i don't specify arguments,why can't i simply put it as "int main()" Rahul
37
3453
by: Army1987 | last post by:
Is that in the object line a conforming program? If so, why? If not, why? I'd expect it to be much like int main(void) { for (;;); } But if I compile it with lcc-win32 and run it in its rundos.exe, it says the
0
7413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7597
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. ...
1
7358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7697
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...
1
5286
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...
0
4902
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3397
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...
0
3396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
650
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.