Examveda

What will be the output of the following C code?
#include<time.h>
int main (void)
{
    float n = time(NULL);
    printf("%.2f\n" , n);
}

A. time in seconds from 1 January, 1970

B. time in minutes from 1 January, 1970

C. time in seconds from 1 January, 1980

D. time in minutes from 1 January, 1980

Answer: Option A


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions