#include <iostream> using namespace std; int main(){ class foo{public:char* bar;}; char bam = 'x'; foo boo;boo.bar = &bam;cout<< *(boo.bar); }
Standard input is empty
x
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!