Program is to find no. of days between 2 dates using pointer to structures
Can anyone help me with a C program(no of days b/w dates) urgent.....??
You can create simple date structure like that
struct date
{
int day;
int month;
int year;
};
void main()
{
struct date *d1, *d2;
d1-%26gt;day=10;
d1-%26gt;month=4;
d1-%26gt;year=1998;
//Similary you can declare d2 and so on and implement you code accrdingly
}
you can also visit my blog http://codesbyshariq.blogspot.com for more C, C++ programs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment