Write a program to make an array and print in cpp.
#include<iostream.h> #include<conio.h> int array[]={1,2,3,4,5,6}; #define maxlen 6 void main(){ clrscr(); for(int i=0;i<maxlen;i++){ cout<<array[i]<<"\t"; } getch(); }
Program Output:
(Visited 70 times, 1 visits today)
Written by: