Well ,
This problem looks like a Homework problem,

int 1starray[15] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int 2ndaray[15];
int i;
for(i=0;i<15;i++)
     2ndarray[i] = 1starray[15-(i+1)];

for(i=0;i<15;i++)
     printf("%d\n",2ndarray[i]);

Was it so tough for you ?

Being an Engineer you need to think dear.....think....think
Regards,
Debasish

<html><DIV>
<P><FONT face="Lucida Handwriting, Cursive" color=#ff9900 
size=2>Karmennavava Dhikaraste, Maaphaleshu 
Kadaachanah</FONT></P></DIV></html>





From: "muhammad shahid" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [c-prog] (unknown)
Date: Thu, 15 Feb 2007 20:34:53 +0500

HELLO TO ALL
                    FRIENDS I AM A NEW PROGRAMMER IN C++, STUDENT OF
ELECTRONICS AND TELECOM ENGG.
                           MY problem(in the following program) is that i
want to store the values of 1starray(int 1starray[15]) into the
2ndarray(2ndarray[15]) in the reverse order
i.e.,  the value at " 1starray[0]" will be equal to at "2ndarray[15]" in
other words values at reverse index of array.
                              i am using turbo c 3.0.


#include<iostream.h>
#include<conio.h>
void main()
{
   clrscr();
   int 1starray[15];
   int 2ndarray[15];
   cout<<""Enter values?\n";
   for(int i=0;i<15;i++)
   {
     cin>>1starray[i];
    }
        HOW I DO NEXT \



PLZ REPLY
                                        SHAHID SHARIF

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

_________________________________________________________________
Get Married in 2007. Join Shaadi.com 
http://www.shaadi.com/ptnr.php?ptnr=mhottag

Reply via email to