About 9,170,000 results
Open links in new tab
  1. What is the difference between const int*, const int * const, and int ...

    Jul 17, 2009 · 1866 I always mess up how to use const int *, const int * const, and int * const correctly. Is there a set of rules defining what you can and cannot do? I want to know all the …

  2. constants - What does 'const&' mean in C++? - Stack Overflow

    int const* const is a const pointer to a const int For whatever unfortunate accident in history, however, it was found reasonable to also allow the top-level const to be written on the left, i.e., …

  3. c++ - What is the meaning of 'const' at the end of a member …

    The const keyword used with the function declaration specifies that it is a const member function and it will not be able to change the data members of the object.

  4. Proper use of const for defining functions - Stack Overflow

    Are there any limits to what types of values can be set using const in JavaScript, and in particular, functions? Is this valid? Granted it does work, but is it considered bad practice for any reason?

  5. How do I best use the const keyword in C? - Stack Overflow

    I am trying to get a sense of how I should use const in C code. First I didn't really bother using it, but then I saw a quite a few examples of const being used throughout. Should I make an effort ...

  6. c - Constant pointer vs Pointer to constant - Stack Overflow

    Jan 31, 2014 · A constant pointer is declared as : int *const ptr ( the location of 'const' make the pointer 'ptr' as constant pointer) 2) Pointer to Constant : These type of pointers are the one …

  7. Const in JavaScript: when to use it and is it necessary?

    Jan 20, 2014 · It then goes on to say: const is going to be defined by ECMAScript 6, but with different semantics. Similar to variables declared with the let statement, constants declared …

  8. What is meant with "const" at end of function declaration?

    The above usage of const only applies when adding const to the end of the function declaration after the parenthesis. const is a highly overused qualifier in C++: the syntax and ordering is …

  9. Does using const on function parameters have any effect? Why …

    The reason is that const for the parameter only applies locally within the function, since it is working on a copy of the data. This means the function signature is really the same anyways. …

  10. c - Difference between const & const volatile - Stack Overflow

    20 In C, const and volatile are type qualifiers and these two are independent. Basically, const means that the value isn’t modifiable by the program. And volatile means that the value is …