In a function declaration, what's the difference between void fun(const string& a) and void fun(string a)?
7789
Is it better in C++ to pass by value or pass by constant reference?
19240
My attempt at value initialization is interpreted as a function declaration, and why doesn't A a(()); solve it?
90444
Difference between void main and int main in C/C++?
39222
Is there a difference between return myVar vs. return (myVar)?
2480
Why do function pointer definitions work with any number of ampersands '&' or asterisks '*'?
28983
Why does a function with no parameters (compared to the actual function definition) compile?
154501
What does (void) 'variable name' do at the beginning of a C function?
92119
Should I use std::function or a function pointer in C++?
22690
What is this strange function definition syntax in C?
102620
Confusion about the definition of function
12603
Difference between declared string and allocated string
83972
Why do we need to use `int main` and not `void main` in C++?
35767
What is the difference between a predicate and function?
155155
Parentheses in pure functions: # & vs. ( # &)
125985
Why does this const member function allow a member variable to be modified?
84008
Two basic C++ questions about string literals and dynamic allocation
6872
Are the days of passing const std::string & as a parameter over?