About 50 results
Open links in new tab
  1. How to keep one variable constant with other one changing with row …

    Lets say I have one cell A1, which I want to keep constant in a calculation. For example, I want to calculate a value like this: =(B1+4)/(A1) How do I make it so that if I drag that cell to make a

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

    Symbolic Constant: When to replace? Magic: Unknown semantic Symbolic Constant -> Provides both correct semantic and correct context for use Semantic: The meaning or purpose of a thing. "Create a …

  3. Why can I change a constant object in JavaScript?

    A constant array only means that the value of the pointer will not change - but in fact the data contained at that address is free to. In javascript, you are allowed to call methods of constant objects (of course …

  4. What is a constant reference? (not a reference to a constant)

    By "constant reference" I am guessing you really mean "reference to constant data". Pointers on the other hand, can be a constant pointer (the pointer itself is constant, not the data it points to), a …

  5. algorithm - What is Constant Amortized Time? - Stack Overflow

    Oct 14, 2008 · What is meant by "Constant Amortized Time" when talking about time complexity of an algorithm?

  6. 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 other variable.

  7. How do I create a constant in Python? - Stack Overflow

    Apr 21, 2010 · 13 You can use a namedtuple as a workaround to effectively create a constant that works the same way as a static final variable in Java (a Java "constant"). As workarounds go, it's sort of …

  8. Is it possible to use std::string in a constant expression?

    Be aware that whenever you pass this constant to a function taking a const std::string& a new std::string has to be constructed. That is usually the opposite of what one had in mind when creating a constant.

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

    Oct 9, 2012 · Question: Is static final the only way to declare a constant in a class? If I write public final int A = 0; instead, is A still a constant or just an instance field? What is an instance variable? What's …

  10. Java switch statement: Constant expression required, but it IS constant

    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 constant …