Examveda
Examveda

int a[5] = {1,2,3}
What is the value of a[4]?

A. 3

B. 1

C. 2

D. 0

E. Garbage Value

Answer: Option D

Solution(By Examveda Team)

In the fourth location of an array it contains 0 since default initialization will take place.


This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Comments ( 1 )

  1. Vishwesh Kumar
    Vishwesh Kumar :
    8 years ago

    Answer will be D. Please Correct it.
    By default initialization will take place

Related Questions on Arrays and Strings