#include <iostream> using namespace std; int main(){ int n = 5; char letter = 'a'; void* ptr = &n; void* ptr2 = &letter; cout << *(int*) ptr << endl; cout << *(char*) ptr2 << endl; }