|
From: SlackRat <ab...@to...> - 2005-02-25 15:10:12
|
----- Original Message -----
From: "Farzan Hajian" <far...@ho...>
To: <dev...@li...>
Sent: Friday, February 25, 2005 5:37 AM
Subject: [Dev-C++] My Two Problems
Hi,
I have two different questions:
-------------------------------------------
The First:
What is a static function? For example what is the difference
between the following function and its non-static version??
//Static Version:
Static int MyFunc(int n)
{
return n*2;
}
//Non-Static Version:
int MyFunc(int n)
{
return n*2;
}
This might help a little, but take the time to read up on a C/C++ primer
http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/static.htm
--
SlackRat
|