Program to illustrates Pointers & Arrays


#include<iostream.h>
#include<conio.h>
void main( )
{
    int A [ ] = { 11, 33, 55, 77, 99 } ;
    for ( int i = 0; i <= 4; i++)
    {
     cout<<"\n Element  "<< i <<"\t" ;
            cout<<"  Number "<< A[i] <<"\t" ;
            cout<<" Address =  "<<&A[i];
    }
                 getch( );
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|