Sunday, September 28, 2008

Which one of the following statements will properly initialize the variable t with the current time from the above statement?

18. time_t t;

Choice a: t = clock();
Choice b: time( &t );
Choice c: t = ctime();
Choice d: t = localtime();
Choice e: None of the above

No comments: