I
Ian Tuomi
Hello, I was wondering, does it make any difference if you write
void foo(int x)
{
/* insert code here */
}
or
foo(int x)
{
/* insert code here */
}
What is the difference?? Both ways the function wont return anything,
right? What is the point in writing void? Is it merely a cosmetic feature?
--
Ian Tuomi
Jyväskylä, Finland
GCS d- s+: a--- C++>$ L+>+++$ E- W+ N+ !o>+ w---
!O- !M- t+ !5 !X R+ tv- b++ DI+ !D G e->+++ h!
void foo(int x)
{
/* insert code here */
}
or
foo(int x)
{
/* insert code here */
}
What is the difference?? Both ways the function wont return anything,
right? What is the point in writing void? Is it merely a cosmetic feature?
--
Ian Tuomi
Jyväskylä, Finland
GCS d- s+: a--- C++>$ L+>+++$ E- W+ N+ !o>+ w---
!O- !M- t+ !5 !X R+ tv- b++ DI+ !D G e->+++ h!