When placed in a valid execution context, which statement will dynamically allocate memory from the heap for an integer of value 11?

Advertisement

  • int anInt = new int(11);
  • int* anInt = new int[11];
  • int anInt = new int[11];
  • int* anInt = new int(11);
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.