NOTES

Thursday 30 June 2011

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();
}

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home