[ create a new paste ] login | about

Link: http://codepad.org/2QSSX9Qw    [ raw code | output | fork ]

C++, pasted on Apr 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<iostream.h>
int mian()
{
int va[3]={10,20,30},i;
int*prt;
prt=&va[3];
for(i=0;i<3;i++)
{
cout<<"adres of va"<<i;
cout<<prt<<endl;
cout<<"valu["<<i<<"]=";
cout<<*prt<<endl;
prt++;
i++;
}
return 0;
}


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: