#include #include main() { int *a,*b,i,n; b=a; clrscr(); cout<>n; cout<<"n Enter the elements:n"; for(i=0;i<n;i++) { cout<<"n A["<<i<>*a; a++; } cout<<"nnn"; cout<<"n Entered element of array were:"; a=b; for(i=0;i<n;i++) { cout<<"n Address location"<<a<<"contains value A["<<i<<"]="<<*a; a++; } getch(); }
#include #include main() { int *a,n,i; float contains; clrscr(); cout<>n; cout<<"n Enter the elements n"; for(i=0;i<n;i++) { cout<<"n A["<<i<>*(a+i); } cout<<"nnn"; cout<<"n Entered elements of array were"; for(i=0;i<n;i++) { cout<<"n Addess Location"<<(a+i)<<" contains value A["<<i<<"]="<<*(a+i); } getch(); }