Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    A function w/o arguments should be void f(void), IIRC. void f() can accept any arguments (yes that's the amazing C language). Commented Nov 20, 2013 at 8:55
  • prime() is never called, is it? so there is no prototype necessary, because it's never called Commented Nov 20, 2013 at 8:55
  • it looks like you are not calling prime anywhere ? If you don't call it, there is no need to declare it (before). Commented Nov 20, 2013 at 8:56
  • 2
    Also, teach yourself to always use curly braces in if, etc. Even if there is only one statement. Commented Nov 20, 2013 at 8:58
  • Your comment is not correct. void prime(); is just a declaration; it isn't a prototype. Commented Nov 20, 2013 at 9:03