How to initialize 4th position only in Array of 5 positions.

Posted by mahesh on Stack Overflow See other posts from Stack Overflow or by mahesh
Published on 2010-04-08T13:46:25Z Indexed on 2010/04/08 13:53 UTC
Read the original article Hit count: 171

Filed under:
|

Hi,

I wanted to store 10 in 4th position of array of 5 positions. How to do ?

int main( ) 
{  
    int a[5] = {,,,,4} ;
    return 0; 
}

If i do that i get error. Please help.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++