Hi Shahid,
  here is ur modified code....
   
   
  #include<iostream. h>
#include<conio. h>
void main()
{
clrscr();
int array1[15] ;    /*You can't declare a variable name starting with a 
number.*/
int array2[15] ;
cout<<""Enter values...\n";
for(int i=0;i<15;i++ )
{
cin>>array1[ i];
}
  for(i=0;i<15;i++)
  {
     array2[14-i]=array1[i];   
  /* as the last position in array2[15] is array[14], and 14-i will             
                                 start  from 14 and go on till 0 when i=14.*/
                                          
  }
   
  /* now you can display the arrays */



Sudhanshu Gupta
 
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Reply via email to