Posts by loucamentelou • 1 point
1 post
-
0
votes2
answers80
viewsQ: Problem with neighboring positions in C++ arrays
#include <iostream> using namespace std; int main(){ int myVector[] = {2,6,4,1,9,5,7,3,8,0}; int tamanhoVetor = sizeof(myVector)/sizeof(myVector[0]); //Imprime for (int i=0;…