0 votes 0 votes if array declared size is larger than values initialised. Then what value rest memory elements have , 0 or garbage? Programming in C array + – bunty choudhary asked Dec 16, 2018 bunty choudhary 343 views answer comment Share Follow See 1 comment See all 1 1 comment reply Mk Utkarsh commented Dec 16, 2018 reply Follow Share If array is partially initialized then uninitialised locations will contain 0 3 votes 3 votes Please log in or register to add a comment.
1 votes 1 votes It Depends: Case 1 : If the array is declared inside a function then it will through unkown garbage value. Case 2: If its Global or static then it will be ZERO. Kashyap Avinash answered May 7, 2019 Kashyap Avinash comment Share Follow See all 0 reply Please log in or register to add a comment.