← Quiz: C Functions and Recursion: all 10 questions
Quiz: C Functions and Recursion · Question 4 of 10
What is the default initial value of a static local int?
What is the default initial value of a static local int?
- A.Garbage
- B.0
- C.1
- D.-1
Answer & explanation
Correct answer: 0
Static (and global) variables are zero-initialised.
Can you get the rest right without peeking?
Take the timed Quiz: C Functions and Recursion quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →