Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::endl;
- using std::cout;
- using std::string;
- int main()
- {
- int a = 5;
- char b = 'a';
- string c = "abc";
- void *arr[3]={&a, &b, &c};
- for(int i=0;i<3;i++){
- cout << *arr[i]<< endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement