Showing posts with label C Functions. Show all posts
Showing posts with label C Functions. Show all posts

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

Thursday, September 11, 2008

Which one of the following functions is the correct choice for moving blocks of binary data that are of arbitrary size and position in memory?

Choice a: memcpy()
Choice b: memset()
Choice c: strncpy()
Choice d : strcpy()
Choice e :memmove()