int main() {} is okay. An empty parameter list for a prototype is not the same however.
For the function definition itself, () is the same as (void) (as Prelude pointed out to me).
int main() {} is okay. An empty parameter list for a prototype is not the same however.
For the function definition itself, () is the same as (void) (as Prelude pointed out to me).
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Ok. Gotcha. Since main isn't prototyped...
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.