Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h> /* printf, NULL */
- #include <stdlib.h> /* srand, rand */
- #include <time.h> /* time */
- #include <iostream>
- #include <string>
- #include <stdio.h> /* printf, NULL */
- #include <stdlib.h> /* srand, rand */
- #include <time.h>
- int main()
- {
- int myarray[20];
- int mario = 5;
- int * mypointer;
- int *p2;
- int martino = 7;
- p2= &martino;
- mypointer=myarray;
- std::cout<<*mypointer<<" valore a cui punta my pointer!\n";
- std::cout<<&mypointer<<"indirizzo di my pointer!\n";
- std::cout<<myarray<<" indirizzo di my array!\n";
- std::cout<<&myarray<<" indirizo di my array!\n";
- std::cout<<mypointer<<" valore di my ponter!\n";
- mario = *p2;
- std::cout<<mario<<" valore di my mario!\n";
- std::cout<<&mario<<" indirizzo di mario!\n";
- std::cout<<p2<<" valore di mypointer !\n";
- //std::cout<<myarray[0]<<" indirizzo my array!\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement