1) Static variable = global variable but visible only in target function or structure or class. So value of static variable is not delete.
2) Static member of class or structure = global variable for all objects of the class. For example for count objects of the class.
static int counter;
You can call