- Nov 9, 2011
- 355
- 0
- 0
Trying to understand why I get a "argument doesn't match prototype" error
And whats the HTML for putting this in a code clock?
Code block created. Check here for more info on how to use them.
Markbnj
Programming moderator
Code:
#include <stdio.h>
#include <stdlib.h>
void convert_temp(int degreeIn, char scaleIn);
int main()
{
int degree1, degree2;
char scale1, scale2;
printf("Enter a temperature and a scale\n");
scanf("%d %c", °ree1, &scale1);
convert_temp(degree1, scale1);
printf("%d %c = %d %c\n", degree1, scale1, degree2, scale2);
return (0);
}
void convert_temp(degreeIn, scaleIn)
{
printf("HI");
}
Code block created. Check here for more info on how to use them.
Markbnj
Programming moderator
Last edited by a moderator:
