1. Home
  2. Computer Science MCQs
  3. C Programming
  4. The value of an uninitialised automatic (local) variable…

Added 30 Nov -0001

The value of an uninitialised automatic (local) variable in C is:

  1. indeterminate garbage Correct answer
  2. always zero
  3. always NULL
  4. a compile-time error

Correct answer

A. indeterminate garbage

15 views

MCQSEXAM

Explanation

Automatic variables are not initialised automatically; they contain whatever value happens to be in memory.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs