My C++ Quiz

The ultimate place to learn C++!

Question #29: If assumptions in the code below are true what value would be the final value printed by this program?

int main(int argc, char** argv)
{
  // assume result printed is 4
  std::cout << sizeof(int) << std::endl;

  int *x = new int;
  
  // assume result printed is 0x60000000
  std::cout << x << std::endl;

  std::cout << x + 3 << std::endl;

  return 0;
}