Home / MCQ Bank / Computer
Computer Standard Library Functions

What will be the output of the following C code if the current system date is 6/22/2017? #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { time_t ct; time(&ct); struct tm *mt=localtime(&ct); printf("%d\n",mt-> tm_date); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • error

Related Computer Questions

Which of the following leads to high network traffic? What will the max function in the numeric limit will return for type float? Consider the 2×3 matrix {{1,2,3},{1,2,3}}. What is the sum of elements of the maximum sum rectangle? Which of the following command allows you to change directory to one level above your parent directory? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main(int argc, char const *argv[]) { char str[] = "Hello World"; cout<<str[0]; return 0; }