no
This will output 1234Code:#include <iostream> using namespace std; int main() { int myarray[3]; myarray[0] = 1; myarray[1] = 2; myarray[2] = 3; myarray[3] = 4; cout << myarray[0] << myarray[1] << myarray[2] << myarray[3] << endl; }
myarray[3] holds 4 elements.
I would also like to recommend the use of vectors, arrays suck compared to vectors![]()




Reply With Quote