using namespace std;
main(){
int a=8;
int *ptr;
a=8;
ptr=&a;
cout<<"&a : "<<&a<
cout<<"ptr : "<
cout<<"a : "<<&a<
cout<<"*ptr : "<<*ptr<
cout<<"&*ptr : "<<&*ptr<
cout<<"*&ptr : "<<*&ptr<
system("pause");
}
Copyright © 2009 Entertainment OnLine |Designed by Templatemo |BloggerTemplate Converted by BloggerThemes.Net
0 comments:
Post a Comment