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.

12
  • How int x; be a declaration? o.O. Commented Oct 11, 2013 at 20:46
  • 1
    @haccks I'm not sure I get the question, could you rephrase it? Commented Oct 11, 2013 at 20:48
  • Actually I am totally confused now. :( Commented Oct 11, 2013 at 20:50
  • 7
    @hackks you should not trust some low quality text from the internet. The quote is wrong. You cannot define an object multiple times in C and x = 10; is a statement which performs an assignment and not a definition. Commented Oct 11, 2013 at 21:36
  • 1
    @ouah you can in fact have multiple definitions in C if it's a file-scope object and only one is non-tentative (e.g. int x; int x = 10; at file scope is OK) Commented Dec 3, 2018 at 1:40