
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 b[10]; int p,q; clrscr(); p=&a[0]; q=&b[9]; for (int i=0;i<10;i++) { q=p; p++; q--; } for (i=0;i<10;i++) { cout<<" "<<b[i]; } getch(); }