
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

#include<conio.h> #include<iostream.h> void main (void) { int a[10]={1,2,3,4,5,6,7,8,9,10}; int p; clrscr(); for (p=&a[0];p<&a[10];p++) { cout<<" "<<p; } cout<<"\n\n\n"; p=&a[0]; for (int i=0;i<10;i++) { cout<<" "<<*p; p++; } getch(); }