Default value of static variable - C++ basic concepts

Q.  Default value of static variable is_____ .
- Published on 17 Jul 15

a. 0
b. 1
c. Garbage value
d. Compiler dependent

ANSWER: 0
 

    Discussion

  • Raj   -Posted on 13 Oct 15
    Default value of static variable is zero if no other initialization is there.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)