🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Garbage
  2. B.0
  3. C.1
  4. 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 →