The very first and the basic approach to initialize an array with the same value in C/C++ is to give an initializer list. ... int arr[] = { 10, 10, 10, 10, 10 };.
確定! 回上一頁