Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 123788
0 votes

Is it correct to say that a variable is an instance of a data type?

Many people reserve "instance" for instances of classes. If you do that then in C++, a variable could be an instance of a class, a reference to an instance, a pointer to an instance, or a primitive ty …
gnasher729's user avatar
  • 47.5k
0 votes

Is a literal out of range a syntax error or a semantic error?

You decide as the compiler writer. If you are a user of a compiler, it doesn't really make much difference. But there are different situations where different ranges of integer literals would be acc …
gnasher729's user avatar
  • 47.5k
42 votes

Is putting general-use functions in a "helpers" file an anti-pattern or code smell?

My criterion is: If you needed a function from the "helpers" file, would you find it? Or would you write your own version, use it, and put it into the "helpers" file together with two other almost ide …
gnasher729's user avatar
  • 47.5k