Answers for "c program to print current date and time"

C
1

c program to print current date and time

#include<stdio.h>
#include<time.h>

int main()
{
    printf("\n\n\t\tStudytonight - Best place to learn\n\n\n");

    time_t t;   // not a primitive datatype
    time(&t);

    printf("\nThis program has been writeen at (date and time): %s", ctime(&t));

    printf("\n\n\t\t\tCoding is Fun !\n\n\n");
    return 0;
}
Posted by: Guest on February-19-2021

Code answers related to "c program to print current date and time"

Code answers related to "C"

Browse Popular Code Answers by Language