11 Oct 2019

  • October 11, 2019
  • Amitraj

Program of System Date and Time:-









#include <stdio.h>

#include <time.h>

int main()
{
   time_t t;
   time(&t);
      printf("System date and time is: %s",ctime(&t));
   getch();
   return 0;
}

output:-

System date and time is: Fri Oct 11 15:40:16 2019

Translate

Popular Posts