Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <cstring>
- #include <cctype>
- using namespace std;
- struct list{
- string name;
- string type;
- list *node;
- };
- void dispaly(string& name){
- name[0]='L';
- }
- int main() {
- //line of string input
- // char input[100];
- // cin.getline(input,sizeof(input));
- int a=10;
- int *b; //pointer
- int **dbl; //pointer pointing
- b = &a;
- dbl = &b;
- cout<<dbl<<endl;
- cout<<&b<<endl;
- cout<<**dbl<<endl;
- cout<<&a<<endl;
- cout<<*b<<endl;
- cout<<b<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement