Pages

Write a program to print time on screen.

Wednesday 10 July 2013

#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <string>
int main(void)
{
    time_t current_time;
    char* c_time_string, finel_time;

    current_time = time(NULL);
    c_time_string = tm(&current_time);
    (void) printf("%s", c_time_string+4);
    getch();
}

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *