// con1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; #define SIZE 5 int main() { int num[SIZE] = { 11, 22, 300, 4, 567 }; // how to initialize a constant array int i; // multiply the vector by the scalar 2 for (i = 0; i < SIZE; i++) { num[i] *= 2; } // print the array for (i = 0; i < SIZE; i++) { cout << num[i] << " "; } cout << endl; return 0; }