array-initialize tag

1 questions


1 answers
160 views
0
To initialize a C array

I want to initialize the same value from beginning to end when declaring an array.Now int myarr[30];for(i=0; i<30; i++) myarr[i] = 3;I'm doing a for statement like this, but not memset()myarr[all] ...


© 2024 OneMinuteCode. All rights reserved.