Home / MCQ Bank / Computer
Computer Standard Library Functions

What will be the output of the following C code if the system time is 1:52 PM (Sunday)? #include<stdio.h> #include<time.h> int main() { struct tm *ptr; time_t t; char str[100]; t = time(NULL); ptr = localtime(&t); strftime(str,100,"%I",ptr); puts(str); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • 01

Related Computer Questions

What is the primary use of "word embeddings" in NLP? Which of these method is used to explicitly set the priority of a thread? Which among the following is the best cut-off range to perform insertion sort within a quick sort? With which of the following all formulas in excel starts ? Which of the following plots are used to check if a data set or time series is random?