seconds?.... lemme try that
ahh the * ?
Code:
#include <stdio.h>
void time(int seconds, int *, int *, int *);
int main()
{
int holdScreen;
int seconds, *hour, *min, *sec;
printf("Enter Seconds: ");
scanf("%d",seconds);
time(seconds,hour,min,sec);
scanf("%d", &holdScreen);
}
void time(int seconds, int *min, int *hour, int *sec)
{
seconds ( (*hour) *60 + *min) *60;
printf("the total numbers of seconds is %d", seconds);
return;
}
Error saying:
In function `void time(int, int*, int*, int*)':
`seconds' cannot be used as a function
then highlights this line:
seconds ( (*hour) *60 + *min) *60;
my end product so far:
Code:
#include <stdio.h>
void time(int seconds, int *, int *, int *);
int main()
{
int holdScreen;
int seconds, *hour, *min, *sec;
printf("Enter Seconds: ");
scanf("%d",seconds);
time(seconds,hour,min,sec);
scanf("%d", &holdScreen);
}
void time(int *hour, int *min, int *sec)
{
//int seconds;
int seconds ( (*hour) *60 + *min) *60;
printf("the total numbers of seconds is %d", seconds);
return;
}