Print the time in your computer using C program

Bismillahir Rahmanir Rahim
 Solution:

#include<stdio.h>
#include<dos.h>
 
void main()
{
  struct time t;
  //iubatians.blogspot.com
  gettime(&t);
  printf("Current system time is in your Computer:\n");
  printf("%d:%d:%d\n",t.ti_hour,t.ti_min,t.ti_sec);

}

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →