About 15,100,000 results
Open links in new tab
  1. c - Constant pointer vs Pointer to constant - Stack Overflow

    Jan 31, 2014 · A constant pointer is a pointer that cannot change the address its holding. In other words, we can say that once a constant pointer points to a variable then it cannot point to any …

  2. .net - C# naming convention for constants? - Stack Overflow

    Oct 28, 2008 · The recommended naming and capitalization convention is to use P ascal C asing for constants (Microsoft has a tool named StyleCop that documents all the preferred …

  3. c# - Declare a const array - Stack Overflow

    Feb 28, 2011 · It is possible to declare a constant array; the problem is initializing it with a constant value. The only working example that comes to mind is const int[] a = null; which is …

  4. What are magic numbers and why do some consider them bad?

    Sep 6, 2008 · Symbolic Constant: When to replace? Magic: Unknown semantic Symbolic Constant -> Provides both correct semantic and correct context for use Semantic: The …

  5. Java switch statement: Constant expression required, but it IS …

    1 - The constant expression restrictions can be summarized as follows. Constant expressions a) can use primitive types and String only, b) allow primaries that are literals (apart from null) and …

  6. Add column with constant value to pandas dataframe

    Add column with constant value to pandas dataframe [duplicate] Asked 11 years, 1 month ago Modified 5 years ago Viewed 355k times

  7. Add column to dataframe with constant value - Stack Overflow

    Apr 8, 2015 · To assign a constant column of a specific data type, you can write something like: df[name] = pd.Series(0, index=df.index, dtype='Int8') In this example, we create a pandas …

  8. How to declare a constant in Java? - Stack Overflow

    Oct 9, 2012 · However, the definition "In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant" does not strictly …

  9. What is the difference between const and readonly in C#?

    A const is a compile-time constant whereas readonly allows a value to be calculated at run-time and set in the constructor or field initializer. So, a 'const' is always constant but 'readonly' is …

  10. c++ array - expression must have a constant value

    Feb 10, 2012 · C++ doesn't allow non-constant values for the size of an array. That's just the way it was designed. C99 allows the size of an array to be a variable, but I'm not sure it is allowed …

Refresh