Page 1 of 1

1) What is the primitive system data type that is considered calendar time? A) time B) time_t C) clock D) clock_t 2)What

Posted: Sun May 15, 2022 1:18 pm
by answerhappygod
1) What is the primitive system data type that is
considered calendar time?
A) time
B) time_t
C) clock
D) clock_t
2)What does the following code snippet do?
struct timeval start,end;
gettimeofday(&start,NULL);
strcpy(fullpath,pathname);
gettimeofday(&end,NULL);
A) Measure the performance of the strcpy function call.
B) Execute the gettimeofday twice to amortize the cost of
calling gettimeofday.
C) Measure the cost of memory used by fullpath and pathname.
D) Measure both the cost of memory used and the performance
using the strcpy function.
3)What would be a possible output of the following code snippet
assuming the return value is not zero:
strftime(buf, 64,“Retrieved: %a %b %d, %Y at %r, %Z”, tmp) ==
0)
A) Retrieved: 10:32:35 AM, Friday, May 24, 2024
B) Retrieved: 10:32:35 AM, Friday, May 24, 2024, EDT
C) Retrieved: Friday, May 24, 2024 at 10:32:35 AM
D) Retrieved: Fri, May 24, 2024 at 10:32:35 AM, EDT