C++
Print Array Types
#include<iostream.h>
#include<conio.h>
void main()
{
int a[]={11,12,13,14,15};
int i;
for(i=0; i<5;i++)
{
cout<<a[i]<<i[a]<<*(a+i)<<*(i+a);
}
getch();
}
#include<iostream.h>
#include<conio.h>
void main()
{
int a[]={11,12,13,14,15};
int i;
for(i=0; i<5;i++)
{
cout<<a[i]<<i[a]<<*(a+i)<<*(i+a);
}
getch();
}
Labels: C++
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home