What's wrong in following code,
class temp {
public static void main(String args[]) {
static int i=10;
}
}
Why can not i have a static variable in a static function?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Simple QuestionThreaded View
|
Click Here to Expand Forum to Full Width |