fork(6) download
  1. #include <cstdio>
  2. struct Dummy{};
  3. int main() {
  4. Dummy d, *pd;
  5. void*p=&d;
  6. pd=static_cast<Dummy*>(p);
  7. printf("%d", pd==&d);
  8. }
  9.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
1