I have no idea.
also could you tell me the difference between these two: int i = 0 and int *i = 0 ??
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int year[4];
char month[9];
int p;
printf("Enter Year: ");
scanf("%d", &year);
printf("Enter Month: ");
scanf("%d", &month);
char days[7][3] = {"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"};
p = strcmp (month, "jan");
if (p == 0)
{display(year, month);}
else
printf("Please enter a valid month name!");
system("PAUSE");
return 0;
}
display (year, month)
{
int *i = 0;
while (*i != 0);
printf(" %s %s", month[i], year[i]);
}