'C' Language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swati walia
    Senior Member
    • Sep 2016
    • 108

    'C' Language

    What is a static variable?


    static variable
  • priya.sharma
    Senior Member
    • Aug 2016
    • 105

    #2
    A static variable is one that's ***ociated with a cl***, not objects of that cl***. Let's take a look at an example. To keep things as simple as possible, we'll use a public static variable. If you haven't come across public yet, don't worry about it! In these particular examples, actually it makes no difference.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎