Social Icons

Friday, 3 May 2013

Time Using Ctime Function


#include<unistd.h>
#include<time.h>
#include<stdio.h>
int main()
{
time_t t1,t2;
struct tm *tm_ptr;
int m,p,u;
char *n;
time(&t1);

n=ctime(&t1);


printf("\n time is %s",n);
return 0;
}



No comments:

Post a Comment

 

Sample Text

Sample text

 
Just Programming Cse DriveReputation Management