static variable
collocation in Englishmeaningsofstaticandvariable
These words are often used together. Click on the links below to explore the meanings. Or,see other collocations withvariable.
static
adjective
uk/ˈstæt.ɪk/us/ˈstæt̬.ɪk/
staying in one place without moving, or not changing for a ...
See more atstatic
variable
noun[C]
uk/ˈveə.ri.ə.bəl/us/ˈver.i.ə.bəl/
a number, amount, or situation that ...
See more atvariable
(Definition ofstaticandvariablefrom theCambridge English Dictionary© Cambridge University Press)
Examplesofstatic variable
These examples are from corpora and from sources on the web. Any opinions in the examples do not represent the opinion of the Cambridge Dictionary editors or of Cambridge University Press or its licensors.
However, our divisions are still congruent: the value of astaticvariablecannot depend on a dynamic value.
From theCambridge English Corpus
Moreover, the current authors treated time as astaticvariableand delineated discrete time periods for physical harm as reported by parents.
From theCambridge English Corpus
If the variable is mutable, it will then retain its value across function calls, as with astaticvariable.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Finally, we examined whether our developmental subgroups predicted substance dependence above and beyond three static variables frequently used in subgrouping.
From theCambridge English Corpus
These findings suggest that a developmental approach to subgrouping may not offer incremental predictive validity beyond approaches that utilize several static variables measured retrospectively.
From theCambridge English Corpus
Static constructors allow complexstaticvariableinitialization.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Even reversing the order of entry, the static variables continued to contribute predictive utility above and beyond the probabilities of group membership.
From theCambridge English Corpus
Many of the most commonly used classification schemes are based on static variables that are measured cross-sectionally.
From theCambridge English Corpus
Social background, however, is conceived not just as a set of static variables, but also as an ongoing social process with local and global aspects.
From theCambridge English Corpus
Static variables are initialized to zero by default by the compiler.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
To initialize a static class, or static variables in a non-static class, a static constructor must be defined.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Since the class does not have any static variables to initialize, the initialization completes trivially.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
There is no virtual table feature in the engine, so static variables are bound with a name instead of a reference at compile time.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Re-entrancy bugs: accidental use of static variables instead of dynamic thread memory can cause re-entrancy problems in many situations.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Note: static variables do not change from object to object and stay the same for this given class.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Methods and static variables of constant values can be inlined using the inline keyword.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
This means that a function built of automatic variables is reset to its initial state after being called while one with static variables may not be.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
These examples are from corpora and from sources on the web. Any opinions in the examples do not represent the opinion of the Cambridge Dictionary editors or of Cambridge University Press or its licensors.
Want to learn more?
Go to the definition ofstatic
Go to the definition ofvariable
See other collocations withvariable