Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  8 numero consecutivo arreglo
Language: C/C++
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;

int main (int argc, char *argv[])
{
    int arraya[8];
    int t,r=8;
    cout<<"arreglo principal"<<endl;
    for (t=0;t<8;t++)
    {
        arraya[t]=r++;
        cout<<arraya[t]<<endl;
        }
        cout<<"la copia del arreglo principal:"<<endl;
        for (t=0;t=8;t++)
        {
            int *p=&arraya[t];
            cout<<*p<<endl;
            }
            system("pause");
            return 0;
            }          
          
Comments: