About 9,560,000 results
Open links in new tab
  1. syntax - What does "static" mean in C? - Stack Overflow

    Feb 21, 2009 · I've seen the word static used in different places in C code; is this like a static function/class in C# (where the implementation is shared across objects)?

  2. Why and when to use static structures in C programming?

    The static keyword in C has several effects, depending on the context it's applied to. when applied to a variable declared inside a function, the value of that variable will be preserved between …

  3. What is a "static" function in C? - Stack Overflow

    The question was about plain c functions, not c++ static methods, as clarified in comments. I understand what a static variable is, but what is a static function? And why is it that if I declare a

  4. Why declare a variable or function static in C? - Stack Overflow

    Nov 3, 2009 · The keyword static has several uses; Outside of a function it simply limits the visibility of a function or variable to the compilation unit (.c file) the function or variable occurs …

  5. The static keyword and its various uses in C++ - Stack Overflow

    Mar 6, 2013 · The keyword static is one which has several meanings in C++ that I find very confusing and I can never bend my mind around how its actually supposed to work. From what …

  6. Difference between static in C and static in C++??

    Jun 3, 2009 · The static keyword serves the same purposes in C and C++. When used at file level (outside of a function), it sets the visibility of the item it's applied to. Static items are not visible …

  7. c++ - How do you create a static class? - Stack Overflow

    The nearest thing is a class with only static methods and members. Using static methods will only limit you. What you want is, expressed in C++ semantics, to put your function (for it is a …

  8. What does `static` mean in c#? - Stack Overflow

    The static field variable initializers of a class correspond to a sequence of assignments that are executed in the textual order in which they appear in the class declaration Static members are …

  9. The initialization of static variables in C - Stack Overflow

    I have a question about the initialization of static variables in C. I know if we declare a global static variable that by default the value is 0. For example: static int a; //although we do not

  10. 'static volatile' vs. 'static' vs. 'volatile' in C - Stack Overflow

    Sep 2, 2017 · What's the difference between using the variable specifiers static volatile combined? Or using one alone; like static or volatile in microcontroller programming?