Tuesday, July 28, 2009

Two c++ questions?

_____ must be used to initialize constant members of a class.








and





The _____ operator dynamically allocates memory for an object of a specified type and returns a _____ to that type.

Two c++ questions?
1) Initialization list


http://www.cprogramming.com/tutorial/ini...





2) 'New' operator allocates memory and returns a 'pointer'


http://en.wikipedia.org/wiki/New_(C%2B%2...
Reply:1) constructor


2)new ,starting address
Reply:The NEW operator dynamically allocates memory for an object of a specified type and returns a POINTER to that type.


No comments:

Post a Comment