Tuesday, July 14, 2009

C++ date code question?

The following syntax performs what type of function?


Date vDay(2,14,1993);








a)performs no function








b) overwrites the previously defined variable vDay








c) calls an operating system funciton to set the date








d) defines a new object variable





Thanks to anyone who posts.

C++ date code question?
Technically, e) for none of the above. But given those choices then d).





The reason d) is technically wrong is that you define a TYPE not a variable. The type Date is "defined" somewhere else. This code is just instantiating an object of that type.
Reply:d)

nobile

No comments:

Post a Comment