C
cppsks
What would be the rational for using const with standard types?
const int & OR const unsigned long &
Thanks.
const int & OR const unsigned long &
Thanks.
cppsks said:What would be the rational for using const with standard types?
const int & OR const unsigned long &
cppsks said:What would be the rational for using const with standard types?
const int & OR const unsigned long &
...
cppsks said:What would be the rational for using const with standard types?
const int & OR const unsigned long &
What would be the rational for using const with standard types?
const int & OR const unsigned long &
Siemel Naran said:news:[email protected]...
If you have a function and it receives a variable by value, but in the
function definition you declare the value const, that's another story. Is
this what you're asking about?
void f(int);
void f(const int i) {
...
}
cppsks said:Thanks for the response to all. Just a quick question about the above
declartion and definition.
What does the above convention mean?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.