The following C code results in an error. State whether true or false.
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=asctime(localtime(&t));
printf("%d",local->tm_wday);
return 0;
}
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=asctime(localtime(&t));
printf("%d",local->tm_wday);
return 0;
}A. True
B. False
Answer: Option B

Join The Discussion