Question 22Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)What happens if you try to use an uninitialised variable in C?AThe program will throw a runtime error.BThe variable contains garbage (indeterminate) value.CThe program will not compile.DThe variable is automatically initialised to 0.Show answerHide answerCorrect answer: (B) The variable contains garbage (indeterminate) value. ExplanationA local (automatic) variable that is not initialised holds an indeterminate (garbage) value. The program still compiles and runs, but results are unpredictable.← PreviousAll questions of this paperNext →